diff --git a/lib/Magento/Framework/DB/Adapter/Pdo/Mysql.php b/lib/Magento/Framework/DB/Adapter/Pdo/Mysql.php index de85b40366bd7..300ff23168846 100644 --- a/lib/Magento/Framework/DB/Adapter/Pdo/Mysql.php +++ b/lib/Magento/Framework/DB/Adapter/Pdo/Mysql.php @@ -1141,7 +1141,7 @@ public function getForeignKeys($tableName, $schemaName = null) // collect CONSTRAINT $regExp = '#,\s+CONSTRAINT `([^`]*)` FOREIGN KEY \(`([^`]*)`\) ' - . 'REFERENCES (`[^`]*\.)?`([^`]*)` \(`([^`]*)`\)' + . 'REFERENCES (`[^`]*`\.)?`([^`]*)` \(`([^`]*)`\)' . '( ON DELETE (RESTRICT|CASCADE|SET NULL|NO ACTION))?' . '( ON UPDATE (RESTRICT|CASCADE|SET NULL|NO ACTION))?#'; $matches = array();