Skip to content

Commit

Permalink
[Updater] Add index for course_id column in enrollment table
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Sep 19, 2024
1 parent a770735 commit 1c6e87a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
up: async queryInterface => {
await queryInterface.addIndex('enrollment', ['course_id'])
},
down: async queryInterface => {
await queryInterface.removeIndex('enrollment', ['course_id'])
},
}

0 comments on commit 1c6e87a

Please sign in to comment.