diff --git a/packages/eventindexer/migrations/20290906208839_alter_processed_blocks_chain_id_index.sql b/packages/eventindexer/migrations/20290906208839_alter_processed_blocks_chain_id_index.sql new file mode 100644 index 00000000000..89e70d749ac --- /dev/null +++ b/packages/eventindexer/migrations/20290906208839_alter_processed_blocks_chain_id_index.sql @@ -0,0 +1,9 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE `processed_blocks` ADD INDEX `processed_blocks_chain_id_index` (`chain_id`); + +-- +goose StatementEnd +-- +goose Down +-- +goose StatementBegin +DROP INDEX processed_blocks_chain_id_index on processed_blocks; +-- +goose StatementEnd diff --git a/packages/eventindexer/migrations/20300906208839_alter_processed_blocks_block_height_index.sql b/packages/eventindexer/migrations/20300906208839_alter_processed_blocks_block_height_index.sql new file mode 100644 index 00000000000..f0303ed4f60 --- /dev/null +++ b/packages/eventindexer/migrations/20300906208839_alter_processed_blocks_block_height_index.sql @@ -0,0 +1,9 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE `processed_blocks` ADD INDEX `processed_blocks_block_height_index` (`block_height`); + +-- +goose StatementEnd +-- +goose Down +-- +goose StatementBegin +DROP INDEX processed_blocks_block_height_index on processed_blocks; +-- +goose StatementEnd diff --git a/packages/eventindexer/migrations/20310906208839_alter_processed_blocks_block_height_chain_id_index.sql b/packages/eventindexer/migrations/20310906208839_alter_processed_blocks_block_height_chain_id_index.sql new file mode 100644 index 00000000000..08eb3835b6f --- /dev/null +++ b/packages/eventindexer/migrations/20310906208839_alter_processed_blocks_block_height_chain_id_index.sql @@ -0,0 +1,9 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE `processed_blocks` ADD INDEX `processed_blocks_block_height_chain_id_index` (`block_height`, `chain_id`); + +-- +goose StatementEnd +-- +goose Down +-- +goose StatementBegin +DROP INDEX processed_blocks_block_height_chain_id_index on processed_blocks; +-- +goose StatementEnd