Change fk constraint in possible_date migration
This commit is contained in:
parent
6ce64b5e95
commit
b7b7dbbc73
@ -1,10 +1,9 @@
|
||||
exports.up = (knex) => {
|
||||
return knex.schema.createTable('possible_date', (table) => {
|
||||
table.increments('id').primary();
|
||||
table.uuid('meeting_id').unsigned().notNullable();
|
||||
table
|
||||
.uuid('meeting_id')
|
||||
.unsigned()
|
||||
.notNullable()
|
||||
.foreign('meeting_id')
|
||||
.references('meeting.id')
|
||||
.onDelete('cascade');
|
||||
table.date('possible_date').notNullable();
|
||||
|
Loading…
Reference in New Issue
Block a user