Skip to content

Commit f00df50

Browse files
authored
Merge pull request #1856 from yamashush/add-index-at-revisions
Add index at revision table for improving system performance 🚀
2 parents a0c82d3 + 0287726 commit f00df50

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
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)