diff --git a/migrations/20240801000000_form_db.js b/migrations/20240801000000_form_db.js new file mode 100644 index 00000000..c18eb134 --- /dev/null +++ b/migrations/20240801000000_form_db.js @@ -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') + })