Skip to content

Commit

Permalink
BUGFIX: PSQL Migration syntax fix (thrasher-corp#550)
Browse files Browse the repository at this point in the history
* Fixes asset typo and changes postgres migration to work

* Adds newline to appease
  • Loading branch information
gloriousCode authored Sep 10, 2020
1 parent 091fade commit 16e3540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 16e3540

Please sign in to comment.