We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cfe81 commit 0701fd7Copy full SHA for 0701fd7
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