Add missing index on tags table

master
Sven Slootweg 1 year ago
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…
Cancel
Save