Skip to content

Commit d93ade5

Browse files
committed
Add the blockNumber index to the AddressLogs table
1 parent 4bfaae1 commit d93ade5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"use strict";
2+
3+
module.exports = {
4+
up: async (queryInterface, Sequelize) => {
5+
await queryInterface.addIndex("AddressLogs", ["blockNumber"]);
6+
},
7+
8+
down: async (queryInterface, Sequelize) => {
9+
await queryInterface.removeIndex("AddressLogs", ["blockNumber"]);
10+
}
11+
};

0 commit comments

Comments
 (0)