Made revision scene ID nullable to facilitate scene removal.
This commit is contained in:
15
migrations/20241016171648_revision_nullable.js
Normal file
15
migrations/20241016171648_revision_nullable.js
Normal 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();
|
||||||
|
});
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user