Add missing index on tags table
This commit is contained in:
parent
7c60c4fa6b
commit
96e368b432
15
migrations/20221126223051_index-tags.js
Normal file
15
migrations/20221126223051_index-tags.js
Normal file
|
@ -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 a new issue