Skip to content

Commit dd151d1

Browse files
committed
MC-36428: M 2.4.0 upgrading issue - Unable to apply patch Magento\Review\Setup\Patch\Schema\AddUniqueConstraintToReviewEntitySummary
1 parent 796906f commit dd151d1

File tree

2 files changed

+407
-170
lines changed

2 files changed

+407
-170
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
@@ -2776,7 +2776,7 @@ public function addIndex(
27762776
if (in_array(strtolower($indexType), ['primary', 'unique'])) {
27772777
$match = [];
27782778
// phpstan:ignore
2779-
if (preg_match('#SQLSTATE\[23000\]: [^:]+: 1062[^\']+\'([\d-\.]+)\'#', $e->getMessage(), $match)) {
2779+
if (preg_match('#SQLSTATE\[23000\]: [^:]+: 1062[^\']+\'([\d.-]+)\'#', $e->getMessage(), $match)) {
27802780
$ids = explode('-', $match[1]);
27812781
$this->_removeDuplicateEntry($tableName, $fields, $ids);
27822782
continue;

0 commit comments

Comments
 (0)