diff --git a/migrations/20231216015820_movies_series_photo_count.js b/migrations/20231216015820_movies_series_photo_count.js new file mode 100644 index 00000000..994ae39a --- /dev/null +++ b/migrations/20231216015820_movies_series_photo_count.js @@ -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'); + }); +};