From b4d4edc30dad60b7fb44fd4ddbce2649e49363ec Mon Sep 17 00:00:00 2001 From: Karthik Iyer Date: Mon, 30 Sep 2024 14:06:55 -0700 Subject: [PATCH] SQL to drop columns for protocol 22 release --- ...accounts_and_amount_cols_from_expat_asset_stats.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 services/horizon/internal/db2/schema/migrations/68_remove_accounts_num_accounts_and_amount_cols_from_expat_asset_stats.sql diff --git a/services/horizon/internal/db2/schema/migrations/68_remove_accounts_num_accounts_and_amount_cols_from_expat_asset_stats.sql b/services/horizon/internal/db2/schema/migrations/68_remove_accounts_num_accounts_and_amount_cols_from_expat_asset_stats.sql new file mode 100644 index 0000000000..9c894d4417 --- /dev/null +++ b/services/horizon/internal/db2/schema/migrations/68_remove_accounts_num_accounts_and_amount_cols_from_expat_asset_stats.sql @@ -0,0 +1,10 @@ +-- + migrate Up + +ALTER TABLE exp_asset_stats + DROP COLUMN num_accounts, + DROP COLUMN amount; + +-- + migrate Down +ALTER TABLE exp_asset_stats + ADD COLUMN num_accounts INTEGER DEFAULT 0, + ADD COLUMN amount VARCHAR DEFAULT '';