Skip to content

Commit

Permalink
Merge pull request #1856 from yamashush/add-index-at-revisions
Browse files Browse the repository at this point in the history
Add index at revision table for improving system performance  🚀
  • Loading branch information
Yukaii authored Jun 5, 2024
2 parents a0c82d3 + 0287726 commit f00df50
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 f00df50

Please sign in to comment.