Skip to content

Commit

Permalink
feat(relayer): add indexer for MAX() in MySQL (#16077)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino authored Feb 26, 2024
1 parent dc24155 commit b079ead
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `processed_blocks` ADD INDEX `processed_blocks_chain_id_event_name_block_height_index` (`chain_id`, `event_name`, `block_height`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX processed_blocks_chain_id_event_name_block_height_index on processed_blocks;
-- +goose StatementEnd

0 comments on commit b079ead

Please sign in to comment.