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;