Index item_id properly on task-results

backend-refactor
Sven Slootweg 4 years ago
parent 6b6ab7332e
commit 882863af10

@ -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