Skip to content

Commit

Permalink
Add index at revision table
Browse files Browse the repository at this point in the history
  • Loading branch information
yamashush committed Jan 14, 2024
1 parent d157fde commit a6249ab
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 a6249ab

Please sign in to comment.