Skip to content

Commit

Permalink
(NOBIDS) Add withdrawals amount index
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisei24 committed Apr 22, 2024
1 parent d1c77d8 commit 325939a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/migrations/20240422141500_add_withdrawals_amount_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- +goose Up
-- +goose StatementBegin
SELECT 'up SQL query - add an index for the amount of the withdrawals';
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';
DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_withdrawals_amount;
-- +goose StatementEnd

0 comments on commit 325939a

Please sign in to comment.