Made revision scene ID nullable to facilitate scene removal.

This commit is contained in:
DebaucheryLibrarian
2024-10-16 17:19:58 +02:00
parent 85b5b8203e
commit 393cf38299

View File

@@ -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();
});
};