28 lines
679 B
JavaScript
28 lines
679 B
JavaScript
exports.up = async (knex) => {
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.specificType('alt_titles', 'text ARRAY');
|
|
});
|
|
|
|
await knex.schema.alterTable('movies', (table) => {
|
|
table.specificType('alt_titles', 'text ARRAY');
|
|
});
|
|
|
|
await knex.schema.alterTable('series', (table) => {
|
|
table.specificType('alt_titles', 'text ARRAY');
|
|
});
|
|
};
|
|
|
|
exports.down = async (knex) => {
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.dropColumn('alt_titles');
|
|
});
|
|
|
|
await knex.schema.alterTable('movies', (table) => {
|
|
table.dropColumn('alt_titles');
|
|
});
|
|
|
|
await knex.schema.alterTable('series', (table) => {
|
|
table.dropColumn('alt_titles');
|
|
});
|
|
};
|