diff --git a/indexer/migrations/20250830124006-add-module-chainid-index-to-events.js b/indexer/migrations/20250830124006-add-module-chainid-index-to-events.js new file mode 100644 index 00000000..5af6c045 --- /dev/null +++ b/indexer/migrations/20250830124006-add-module-chainid-index-to-events.js @@ -0,0 +1,14 @@ +'use strict'; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + await queryInterface.addIndex('Events', ['module', 'chainId'], { + name: 'events_module_chainid_idx', + }); + }, + + async down(queryInterface) { + await queryInterface.removeIndex('Events', 'events_module_chainid_idx'); + }, +};