BUGFIX: PSQL Migration syntax fix (#550)

* Fixes asset typo and changes postgres migration to work

* Adds newline to appease
This commit is contained in:
Scott
2020-09-10 10:51:49 +10:00
committed by GitHub
parent 091fade215
commit 16e35405a1
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;