Skip to content

Commit

Permalink
Add index at revision table
Browse files Browse the repository at this point in the history
Signed-off-by: yamashush <38120991+yamashush@users.noreply.github.com>
  • Loading branch information
yamashush committed Jan 14, 2024
1 parent d157fde commit 8f7827d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/migrations/20240114120250-revision-add-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addIndex('Revisions', ['noteId'], {})
},

down: (queryInterface, Sequelize) => {
return queryInterface.removeIndex('Revisions', 'noteId')
}
};

0 comments on commit 8f7827d

Please sign in to comment.