Add missing index on tags table
parent
7c60c4fa6b
commit
96e368b432
@ -0,0 +1,15 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
module.exports.up = function(knex, Promise) {
|
||||||
|
return knex.schema
|
||||||
|
.alterTable("srap_tags", (table) => {
|
||||||
|
table.index("item_id");
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports.down = function(knex, Promise) {
|
||||||
|
return knex.schema
|
||||||
|
.alterTable("srap_tags", (table) => {
|
||||||
|
table.dropIndex("item_id");
|
||||||
|
});
|
||||||
|
};
|
Loading…
Reference in New Issue