traxxx/migrations/20231107044032_photocount.js

20 lines
443 B
JavaScript
Raw Normal View History

2023-11-07 03:46:45 +00:00
exports.up = async (knex) => {
await knex.schema.alterTable('releases', (table) => {
table.integer('photo_count');
});
2023-11-08 02:41:41 +00:00
await knex.schema.alterTable('movies', (table) => {
table.integer('photo_count');
});
2023-11-07 03:46:45 +00:00
};
exports.down = async (knex) => {
await knex.schema.alterTable('releases', (table) => {
table.dropColumn('photo_count');
});
2023-11-08 02:41:41 +00:00
await knex.schema.alterTable('movies', (table) => {
table.dropColumn('photo_count');
});
2023-11-07 03:46:45 +00:00
};