Added movie alt descriptions column to last migration.
This commit is contained in:
parent
7a7c6e92f6
commit
a41134555a
|
|
@ -34,6 +34,10 @@ exports.up = async function(knex) {
|
|||
await knex.schema.alterTable('entities', (table) => {
|
||||
table.string('name_stylized');
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('movies', (table) => {
|
||||
table.specificType('alt_descriptions', 'text ARRAY');
|
||||
});
|
||||
};
|
||||
|
||||
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_teasers');
|
||||
|
||||
await knex.schema.alterTable('movies', (table) => {
|
||||
table.dropColumn('alt_descriptions');
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue