From 37b92209f08a7522fc535644759ea5fab0d56255 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Tue, 3 Feb 2026 05:34:14 +0100 Subject: [PATCH] Added attributes migration. --- migrations/20260203052449_scene_attributes.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 migrations/20260203052449_scene_attributes.js diff --git a/migrations/20260203052449_scene_attributes.js b/migrations/20260203052449_scene_attributes.js new file mode 100644 index 00000000..93b3644d --- /dev/null +++ b/migrations/20260203052449_scene_attributes.js @@ -0,0 +1,19 @@ +exports.up = async (knex) => { + await knex.schema.alterTable('releases', (table) => { + table.json('attributes'); + }); + + await knex.schema.alterTable('movies', (table) => { + table.json('attributes'); + }); +}; + +exports.down = async (knex) => { + await knex.schema.alterTable('releases', (table) => { + table.dropColumn('attributes'); + }); + + await knex.schema.alterTable('movies', (table) => { + table.dropColumn('attributes'); + }); +};