Skip to content

Commit

Permalink
Remoce extra space in sql migration file. Generate bindata.go with go…
Browse files Browse the repository at this point in the history
…generate.sh
  • Loading branch information
karthikiyer56 committed Oct 1, 2024
1 parent 102fe5f commit 6f06c58
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
23 changes: 23 additions & 0 deletions services/horizon/internal/db2/schema/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

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;

0 comments on commit 6f06c58

Please sign in to comment.