From 08fd69af3953cd6ba3d8999c81f303348d9b7cc9 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 8 Nov 2023 03:41:41 +0100 Subject: [PATCH] Added photo_count to movies table. --- migrations/20231107044032_photocount.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/migrations/20231107044032_photocount.js b/migrations/20231107044032_photocount.js index 637621a00..cb065c948 100644 --- a/migrations/20231107044032_photocount.js +++ b/migrations/20231107044032_photocount.js @@ -2,10 +2,18 @@ exports.up = async (knex) => { await knex.schema.alterTable('releases', (table) => { table.integer('photo_count'); }); + + await knex.schema.alterTable('movies', (table) => { + table.integer('photo_count'); + }); }; exports.down = async (knex) => { await knex.schema.alterTable('releases', (table) => { table.dropColumn('photo_count'); }); + + await knex.schema.alterTable('movies', (table) => { + table.dropColumn('photo_count'); + }); };