File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
lib/internal/Magento/Framework/Setup/Patch Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,8 @@ public function applyDataPatch($moduleName = null)
169
169
$ this ->patchHistory ->fixPatch (get_class ($ dataPatch ));
170
170
} else {
171
171
try {
172
- $ this ->moduleDataSetup ->getConnection ()->beginTransaction ();
173
172
$ dataPatch ->apply ();
174
173
$ this ->patchHistory ->fixPatch (get_class ($ dataPatch ));
175
- $ this ->moduleDataSetup ->getConnection ()->commit ();
176
174
} catch (\Exception $ e ) {
177
175
$ this ->moduleDataSetup ->getConnection ()->rollBack ();
178
176
throw new Exception (new Phrase ($ e ->getMessage ()));
@@ -263,11 +261,9 @@ public function revertDataPatches($moduleName = null)
263
261
);
264
262
if ($ dataPatch instanceof PatchRevertableInterface) {
265
263
try {
266
- //$adapter->beginTransaction();
267
264
/** @var PatchRevertableInterface|DataPatchInterface $dataPatch */
268
265
$ dataPatch ->revert ();
269
266
$ this ->patchHistory ->revertPatchFromHistory (get_class ($ dataPatch ));
270
- //$adapter->commit();
271
267
} catch (\Exception $ e ) {
272
268
$ adapter ->rollBack ();
273
269
throw new Exception (new Phrase ($ e ->getMessage ()));
You can’t perform that action at this time.
0 commit comments