forked from DebaucheryLibrarian/traxxx
Added movie alt descriptions column to last migration.
This commit is contained in:
@@ -34,6 +34,10 @@ exports.up = async function(knex) {
|
|||||||
await knex.schema.alterTable('entities', (table) => {
|
await knex.schema.alterTable('entities', (table) => {
|
||||||
table.string('name_stylized');
|
table.string('name_stylized');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.specificType('alt_descriptions', 'text ARRAY');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.down = async function(knex) {
|
exports.down = async function(knex) {
|
||||||
@@ -47,4 +51,8 @@ exports.down = async function(knex) {
|
|||||||
|
|
||||||
await knex.schema.dropTable('chapters_trailers');
|
await knex.schema.dropTable('chapters_trailers');
|
||||||
await knex.schema.dropTable('chapters_teasers');
|
await knex.schema.dropTable('chapters_teasers');
|
||||||
|
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.dropColumn('alt_descriptions');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user