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