We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0c82d3 + 0287726 commit f00df50Copy full SHA for f00df50
lib/migrations/20240114120250-revision-add-index.js
@@ -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