Skip to content

Commit

Permalink
Add index on report.user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
danbenton-mojdt committed Aug 1, 2024
1 parent b04b5aa commit bcf3788
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migrations/20240801000000_form_db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
exports.up = knex =>
knex.schema.table('report', table => {
table.index('user_id')
})

exports.down = knex =>
knex.schema.table('report', table => {
table.dropIndex('user_id')
})

0 comments on commit bcf3788

Please sign in to comment.