From d5d88259dfc82b42ab157437c0a8df8afcd47060 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 22 Apr 2024 15:30:30 +0200 Subject: [PATCH] (NOBIDS) db: fix last db-migration (#2870) --- db/migrations/20240422141500_add_withdrawals_amount_index.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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