16 lines
503 B
JavaScript
16 lines
503 B
JavaScript
|
exports.up = async (knex) => Promise.resolve()
|
||
|
.then(() => knex.schema.alterTable('releases_tags', (table) => {
|
||
|
table.index('release_id');
|
||
|
}))
|
||
|
.then(() => knex.schema.alterTable('movies_scenes', (table) => {
|
||
|
table.index('scene_id');
|
||
|
}));
|
||
|
|
||
|
exports.down = async (knex) => Promise.resolve()
|
||
|
.then(() => knex.schema.alterTable('releases_tags', (table) => {
|
||
|
table.dropIndex('release_id');
|
||
|
}))
|
||
|
.then(() => knex.schema.alterTable('movies_scenes', (table) => {
|
||
|
table.dropIndex('scene_id');
|
||
|
}));
|