Skip to content

Commit 43e7a0f

Browse files
Park Juhyungjoojis
authored andcommitted
Add an index to CCCChanges table for the BalnceHistory API
1 parent 4ecb171 commit 43e7a0f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"use strict";
2+
3+
const tableName = "CCCChanges";
4+
module.exports = {
5+
up: async (queryInterface, Sequelize) => {
6+
await queryInterface.addIndex(tableName, [
7+
"address",
8+
"reason",
9+
"blockNumber",
10+
"id"
11+
]);
12+
},
13+
14+
down: async (queryInterface, Sequelize) => {
15+
await queryInterface.removeIndex(tableName, [
16+
"address",
17+
"reason",
18+
"blockNumber",
19+
"id"
20+
]);
21+
}
22+
};

0 commit comments

Comments
 (0)