Skip to content

Commit 8f7827d

Browse files
committed
Add index at revision table
Signed-off-by: yamashush <38120991+yamashush@users.noreply.github.com>
1 parent d157fde commit 8f7827d

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: (queryInterface, Sequelize) => {
5+
return queryInterface.addIndex('Revisions', ['noteId'], {})
6+
},
7+
8+
down: (queryInterface, Sequelize) => {
9+
return queryInterface.removeIndex('Revisions', 'noteId')
10+
}
11+
};

0 commit comments

Comments
 (0)