fix bad foreign key id_phone pointing to user
This commit is contained in:
parent
62d140d987
commit
fcbb44df98
|
@ -41,7 +41,7 @@ class CreateCall extends AbstractMigration
|
|||
->addColumn('origin', 'string', ['limit' => 20, 'null' => true])
|
||||
->addColumn('destination', 'string', ['limit' => 20, 'null' => true])
|
||||
->addForeignKey('id_user', 'user', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])
|
||||
->addForeignKey('id_phone', 'user', 'id', ['delete' => 'SET_NULL', 'update' => 'CASCADE'])
|
||||
->addForeignKey('id_phone', 'phone', 'id', ['delete' => 'SET_NULL', 'update' => 'CASCADE'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue