traxxx/migrations/20230801225038_scene_titles.js

28 lines
679 B
JavaScript
Raw Normal View History

exports.up = async (knex) => {
await knex.schema.alterTable('releases', (table) => {
table.specificType('alt_titles', 'text ARRAY');
});
2023-08-03 21:24:23 +00:00
await knex.schema.alterTable('movies', (table) => {
table.specificType('alt_titles', 'text ARRAY');
});
2023-08-04 23:38:58 +00:00
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');
});
2023-08-03 21:24:23 +00:00
await knex.schema.alterTable('movies', (table) => {
table.dropColumn('alt_titles');
});
2023-08-04 23:38:58 +00:00
await knex.schema.alterTable('series', (table) => {
table.dropColumn('alt_titles');
});
};