Index item_id properly on task-results
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…
Reference in New Issue