Index item_id properly on task-results
This commit is contained in:
parent
6b6ab7332e
commit
882863af10
15
migrations/20210320222335_indexes.js
Normal file
15
migrations/20210320222335_indexes.js
Normal file
|
@ -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 a new issue