diff --git a/migrations/20221126223051_index-tags.js b/migrations/20221126223051_index-tags.js new file mode 100644 index 0000000..84966a0 --- /dev/null +++ b/migrations/20221126223051_index-tags.js @@ -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"); + }); +};