Skip to content

Commit

Permalink
chore(migrations): add migration for validatorindex_slot_index_withdr…
Browse files Browse the repository at this point in the history
…awals_table
  • Loading branch information
guybrush committed Dec 9, 2024
1 parent 0c931e8 commit 37577c2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- +goose Up
-- +goose StatementBegin
SELECT 'creating idx_blocks_withdrawals_validatorindex_slot';
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_blocks_withdrawals_validatorindex_slot ON blocks_withdrawals (validatorindex, block_slot DESC);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
SELECT 'dropping idx_blocks_withdrawals_validatorindex_slot';
DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_withdrawals_validatorindex_slot;
-- +goose StatementEnd

0 comments on commit 37577c2

Please sign in to comment.