-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remoce extra space in sql migration file. Generate bindata.go with go…
…generate.sh
- Loading branch information
1 parent
102fe5f
commit 6f06c58
Showing
3 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ema/migrations/68_remove_accounts_num_accounts_and_amount_cols_from_expat_asset_stats.sql
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...rizon/internal/db2/schema/migrations/68_remove_deprecated_fields_from_exp_asset_stats.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- +migrate Up | ||
|
||
ALTER TABLE exp_asset_stats DROP CONSTRAINT valid_num_accounts; | ||
|
||
ALTER TABLE exp_asset_stats | ||
DROP COLUMN num_accounts; | ||
|
||
ALTER TABLE exp_asset_stats | ||
DROP COLUMN amount; | ||
|
||
-- +migrate Down | ||
ALTER TABLE exp_asset_stats | ||
ADD COLUMN num_accounts INTEGER NOT NULL DEFAULT 0; | ||
|
||
ALTER TABLE exp_asset_stats | ||
ADD COLUMN amount TEXT NOT NULL DEFAULT ''; | ||
|
||
ALTER TABLE exp_asset_stats ADD CONSTRAINT valid_num_accounts CHECK (num_accounts >= 0) NOT VALID; |