From c2dcac44134899d99812699b84ca8e7a59abb3a7 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 8 Sep 2021 22:14:44 +0900 Subject: [PATCH] Add private_key and public_key fields to instances table --- .../postgres/2021-09-08-131154_instances_add_keys/down.sql | 3 ++- .../postgres/2021-09-08-131154_instances_add_keys/up.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migrations/postgres/2021-09-08-131154_instances_add_keys/down.sql b/migrations/postgres/2021-09-08-131154_instances_add_keys/down.sql index 291a97c5..d303bf39 100644 --- a/migrations/postgres/2021-09-08-131154_instances_add_keys/down.sql +++ b/migrations/postgres/2021-09-08-131154_instances_add_keys/down.sql @@ -1 +1,2 @@ --- This file should undo anything in `up.sql` \ No newline at end of file +ALTER TABLE instances DROP COLUMN private_key; +ALTER TABLE instances DROP COLUMN public_key; diff --git a/migrations/postgres/2021-09-08-131154_instances_add_keys/up.sql b/migrations/postgres/2021-09-08-131154_instances_add_keys/up.sql index 33cf74b5..417033c9 100644 --- a/migrations/postgres/2021-09-08-131154_instances_add_keys/up.sql +++ b/migrations/postgres/2021-09-08-131154_instances_add_keys/up.sql @@ -1 +1,2 @@ --- Your SQL goes here \ No newline at end of file +ALTER TABLE instances ADD COLUMN private_key TEXT; +ALTER TABLE instances ADD COLUMN public_key TEXT;