Made revision scene ID nullable to facilitate scene removal.
This commit is contained in:
parent
85b5b8203e
commit
393cf38299
|
@ -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();
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue