Skip to content

Commit 014826a

Browse files
authored
Merge pull request #473 from hack-a-chain-software/missing-migration
fix: created a missing migration to add an index on the module and chainId columns in the Events table
2 parents 0c6cf5d + 5cbd1fe commit 014826a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up(queryInterface) {
6+
await queryInterface.addIndex('Events', ['module', 'chainId'], {
7+
name: 'events_module_chainid_idx',
8+
});
9+
},
10+
11+
async down(queryInterface) {
12+
await queryInterface.removeIndex('Events', 'events_module_chainid_idx');
13+
},
14+
};

0 commit comments

Comments
 (0)