Added photo_count column to movies and series table.

This commit is contained in:
DebaucheryLibrarian 2023-12-16 01:59:37 +01:00
parent 3379e9e517
commit e09795534c
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
exports.up = async (knex) => {
await knex.schema.alterTable('movies', (table) => {
table.integer('photo_count');
});
await knex.schema.alterTable('series', (table) => {
table.integer('photo_count');
});
};
exports.down = async (knex) => {
await knex.schema.alterTable('movies', (table) => {
table.dropColumn('photo_count');
});
await knex.schema.alterTable('series', (table) => {
table.dropColumn('photo_count');
});
};