From 9a58d9bcb75f97ce7cc186335b14239d2fd1ffbf Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 8 Sep 2021 22:15:20 +0900 Subject: [PATCH] Copy instances_add_keys migration for SQLite --- migrations/sqlite/2021-09-08-131154_instances_add_keys/down.sql | 2 ++ migrations/sqlite/2021-09-08-131154_instances_add_keys/up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 migrations/sqlite/2021-09-08-131154_instances_add_keys/down.sql create mode 100644 migrations/sqlite/2021-09-08-131154_instances_add_keys/up.sql diff --git a/migrations/sqlite/2021-09-08-131154_instances_add_keys/down.sql b/migrations/sqlite/2021-09-08-131154_instances_add_keys/down.sql new file mode 100644 index 00000000..d303bf39 --- /dev/null +++ b/migrations/sqlite/2021-09-08-131154_instances_add_keys/down.sql @@ -0,0 +1,2 @@ +ALTER TABLE instances DROP COLUMN private_key; +ALTER TABLE instances DROP COLUMN public_key; diff --git a/migrations/sqlite/2021-09-08-131154_instances_add_keys/up.sql b/migrations/sqlite/2021-09-08-131154_instances_add_keys/up.sql new file mode 100644 index 00000000..417033c9 --- /dev/null +++ b/migrations/sqlite/2021-09-08-131154_instances_add_keys/up.sql @@ -0,0 +1,2 @@ +ALTER TABLE instances ADD COLUMN private_key TEXT; +ALTER TABLE instances ADD COLUMN public_key TEXT;