Skip to content

Commit

Permalink
Recreate indexes on merkle root columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Nov 20, 2024
1 parent 2822f98 commit 32886e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sequencer/api/migrations/V301__merkle_root_column_indexes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Migration V16 created these columns and indexed them. Then, migration V36 altered the expression
-- use to populate the generated columns. However, it did so by dropping and re-adding the columns
-- with a different expression, which also caused the indexes on the columns to be dropped. They
-- were erroneously not added back. This migration corrects that error by recreating the indexes.
CREATE INDEX header_block_merkle_tree_root_idx ON header (block_merkle_tree_root);
CREATE INDEX header_fee_merkle_tree_root_idx ON header (fee_merkle_tree_root);

0 comments on commit 32886e3

Please sign in to comment.