From bcf378811d547bbf6747c27b5d36c803c150628f Mon Sep 17 00:00:00 2001 From: Daniel Benton Date: Thu, 1 Aug 2024 15:46:57 +0100 Subject: [PATCH] Add index on report.user_id --- migrations/20240801000000_form_db.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migrations/20240801000000_form_db.js 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') + })