Skip to content

Commit fda3267

Browse files
authored
Merge pull request #5990 from magento-trigger/MC-36429
[trigger] MC-36429: M 2.4.0 upgrading issue - Unable to apply patch Magento\Review\Setup\Patch\Schema\AddUniqueConstraintToReviewEntitySummary
2 parents 3fcfcbd + c9fe1a1 commit fda3267

File tree

2 files changed

+430
-210
lines changed

2 files changed

+430
-210
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ public function addIndex(
27382738
} catch (\Exception $e) {
27392739
if (in_array(strtolower($indexType), ['primary', 'unique'])) {
27402740
$match = [];
2741-
if (preg_match('#SQLSTATE\[23000\]: [^:]+: 1062[^\']+\'([\d\-\.]+)\'#', $e->getMessage(), $match)) {
2741+
if (preg_match('#SQLSTATE\[23000\]: [^:]+: 1062[^\']+\'([\d.-]+)\'#', $e->getMessage(), $match)) {
27422742
$ids = explode('-', $match[1]);
27432743
$this->_removeDuplicateEntry($tableName, $fields, $ids);
27442744
continue;

0 commit comments

Comments
 (0)