fix bad foreign key id_phone pointing to user

This commit is contained in:
osaajani 2021-03-26 17:44:51 +01:00
parent 62d140d987
commit fcbb44df98
1 changed files with 1 additions and 1 deletions

View File

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