Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karthik/5438/deprecate horizon fields for protocol 22 #5478

Prev Previous commit
Next Next commit
Remoce extra space in sql migration file. Generate bindata.go with go…
…generate.sh
  • Loading branch information
karthikiyer56 committed Oct 1, 2024
commit 6f06c58471b41dfea661dfbe7f689419fdb24e9d
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;
karthikiyer56 marked this conversation as resolved.
Show resolved Hide resolved

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