From 16e35405a12b19f8530c7bf5b3b0521eb06f1ca3 Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 10 Sep 2020 10:51:49 +1000 Subject: [PATCH] BUGFIX: PSQL Migration syntax fix (#550) * Fixes asset typo and changes postgres migration to work * Adds newline to appease --- .../postgres.sql | 2 +- .../postgres.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/20200814113829_update_withdrawal_history_add_not_null_to_exchange_name_id/postgres.sql b/database/migrations/20200814113829_update_withdrawal_history_add_not_null_to_exchange_name_id/postgres.sql index 7c406c39..f98e80f0 100644 --- a/database/migrations/20200814113829_update_withdrawal_history_add_not_null_to_exchange_name_id/postgres.sql +++ b/database/migrations/20200814113829_update_withdrawal_history_add_not_null_to_exchange_name_id/postgres.sql @@ -4,4 +4,4 @@ ALTER TABLE withdrawal_history ALTER COLUMN exchange_name_id SET NOT NULL; -- +goose Down -- SQL in this section is executed when the migration is rolled back. -ALTER TABLE withdrawal_history ALTER COLUMN exchange_name_id SET NULL; +ALTER TABLE withdrawal_history ALTER COLUMN exchange_name_id DROP NOT NULL; diff --git a/database/migrations/20200814121412_update_candle_add_not_null_to_asset/postgres.sql b/database/migrations/20200814121412_update_candle_add_not_null_to_asset/postgres.sql index 19e08f3d..a285ad16 100644 --- a/database/migrations/20200814121412_update_candle_add_not_null_to_asset/postgres.sql +++ b/database/migrations/20200814121412_update_candle_add_not_null_to_asset/postgres.sql @@ -4,4 +4,4 @@ ALTER TABLE candle ALTER COLUMN asset SET NOT NULL; -- +goose Down -- SQL in this section is executed when the migration is rolled back. -ALTER TABLE candle ALTER COLUMN aseet SET NULL; +ALTER TABLE candle ALTER COLUMN asset DROP NOT NULL;