Skip to content

Commit 602d6a1

Browse files
authored
Fix #24019
Update $this->patchesRegistry in realtime in order to prevent patches from neing applied multiple times.
1 parent af6820c commit 602d6a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/Magento/Framework/Setup/Patch/PatchHistory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public function fixPatch($patchName)
8787

8888
$adapter = $this->resourceConnection->getConnection();
8989
$adapter->insert($this->resourceConnection->getTableName(self::TABLE_NAME), [self::CLASS_NAME => $patchName]);
90+
91+
$this->patchesRegistry[] = $patchName;
9092
}
9193

9294
/**

0 commit comments

Comments
 (0)