Browse Source

Index item_id properly on task-results

master
Sven Slootweg 6 months ago
parent
commit
882863af10
  1. 15
      migrations/20210320222335_indexes.js

15
migrations/20210320222335_indexes.js

@ -0,0 +1,15 @@
"use strict";
module.exports.up = function(knex, Promise) {
return knex.schema
.alterTable("task_results", (table) => {
table.index("item_id");
});
};
module.exports.down = function(knex, Promise) {
return knex.schema
.alterTable("task_results", (table) => {
table.dropIndex("item_id");
});
};
Loading…
Cancel
Save