Added photo_count to movies table.

This commit is contained in:
DebaucheryLibrarian 2023-11-08 03:41:41 +01:00
parent 560ff103ce
commit 08fd69af39
1 changed files with 8 additions and 0 deletions

View File

@ -2,10 +2,18 @@ exports.up = async (knex) => {
await knex.schema.alterTable('releases', (table) => { await knex.schema.alterTable('releases', (table) => {
table.integer('photo_count'); table.integer('photo_count');
}); });
await knex.schema.alterTable('movies', (table) => {
table.integer('photo_count');
});
}; };
exports.down = async (knex) => { exports.down = async (knex) => {
await knex.schema.alterTable('releases', (table) => { await knex.schema.alterTable('releases', (table) => {
table.dropColumn('photo_count'); table.dropColumn('photo_count');
}); });
await knex.schema.alterTable('movies', (table) => {
table.dropColumn('photo_count');
});
}; };