diff --git a/migrations/20241016171648_revision_nullable.js b/migrations/20241016171648_revision_nullable.js new file mode 100644 index 00000000..422fe559 --- /dev/null +++ b/migrations/20241016171648_revision_nullable.js @@ -0,0 +1,15 @@ +exports.up = async (knex) => { + await knex.schema.alterTable('scenes_revisions', (table) => { + table.integer('scene_id') + .nullable() + .alter(); + }); +}; + +exports.down = async (knex) => { + await knex.schema.alterTable('scenes_revisions', (table) => { + table.integer('scene_id') + .notNullable() + .alter(); + }); +};