Skip to content

Commit 57fadcb

Browse files
author
Sergii Kovalenko
committed
MAGETWO-88054: Stabilize S1 build
--move migration to Staging module
1 parent bb29dc9 commit 57fadcb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,8 @@ public function applyDataPatch($moduleName = null)
169169
$this->patchHistory->fixPatch(get_class($dataPatch));
170170
} else {
171171
try {
172-
$this->moduleDataSetup->getConnection()->beginTransaction();
173172
$dataPatch->apply();
174173
$this->patchHistory->fixPatch(get_class($dataPatch));
175-
$this->moduleDataSetup->getConnection()->commit();
176174
} catch (\Exception $e) {
177175
$this->moduleDataSetup->getConnection()->rollBack();
178176
throw new Exception(new Phrase($e->getMessage()));
@@ -263,11 +261,9 @@ public function revertDataPatches($moduleName = null)
263261
);
264262
if ($dataPatch instanceof PatchRevertableInterface) {
265263
try {
266-
//$adapter->beginTransaction();
267264
/** @var PatchRevertableInterface|DataPatchInterface $dataPatch */
268265
$dataPatch->revert();
269266
$this->patchHistory->revertPatchFromHistory(get_class($dataPatch));
270-
//$adapter->commit();
271267
} catch (\Exception $e) {
272268
$adapter->rollBack();
273269
throw new Exception(new Phrase($e->getMessage()));

0 commit comments

Comments
 (0)