Skip to content

Commit 9f16120

Browse files
yamashushAli Bellamine
authored and
Ali Bellamine
committed
Add index at revision table
Signed-off-by: yamashush <[email protected]> Signed-off-by: Ali Bellamine <[email protected]>
1 parent a0c82d3 commit 9f16120

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)