FK: Recognize ON UPDATE and ON DELETE commands if is not in uppercase

This commit is contained in:
Natan Felles 2017-10-31 18:42:48 -02:00
parent e6fc55e195
commit 2a0657e89b
No known key found for this signature in database
GPG Key ID: 59CC6FA82E1E87FD

View File

@ -356,8 +356,8 @@ class Forge
$this->foreignKeys[$fieldName] = [
'table' => $tableName,
'field' => $tableField,
'onDelete' => $onDelete,
'onUpdate' => $onUpdate
'onDelete' => strtoupper($onDelete),
'onUpdate' => strtoupper($onUpdate)
];