diff --git a/db/migrations/20240422141500_add_withdrawals_amount_index.sql b/db/migrations/20240422141500_add_withdrawals_amount_index.sql index 69dd0970ac..4901b25c40 100644 --- a/db/migrations/20240422141500_add_withdrawals_amount_index.sql +++ b/db/migrations/20240422141500_add_withdrawals_amount_index.sql @@ -1,13 +1,13 @@ -- +goose NO TRANSACTION -- +goose Up --- +goose StatementBegin SELECT 'up SQL query - add an index for the amount of the withdrawals'; +-- +goose StatementBegin CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_blocks_withdrawals_amount ON blocks_withdrawals (amount); -- +goose StatementEnd -- +goose Down --- +goose StatementBegin SELECT 'down SQL query - remove the index for the amount of the withdrawals'; +-- +goose StatementBegin DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_withdrawals_amount; -- +goose StatementEnd