diff --git a/packages/relayer/migrations/1666650708_alter_events_table_add_msg_hash_event_index.sql b/packages/relayer/migrations/1666650708_alter_events_table_add_msg_hash_event_index.sql new file mode 100644 index 00000000000..a384f311ae6 --- /dev/null +++ b/packages/relayer/migrations/1666650708_alter_events_table_add_msg_hash_event_index.sql @@ -0,0 +1,9 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE `events` ADD INDEX `msg_hash_event_index` (`msg_hash`, `event`); + +-- +goose StatementEnd +-- +goose Down +-- +goose StatementBegin +DROP INDEX msg_hash_event_index on events; +-- +goose StatementEnd \ No newline at end of file