Skip to content

Commit 57b7deb

Browse files
committed
Add the tracker index to the Transactions table
1 parent d93ade5 commit 57b7deb

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("Transactions", ["tracker"]);
6+
},
7+
8+
down: async (queryInterface, Sequelize) => {
9+
await queryInterface.removeIndex("Transactions", ["tracker"]);
10+
}
11+
};

0 commit comments

Comments
 (0)