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