Skip to content

Commit

Permalink
fix: removed transaction from plugin uninstall routine
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpoensgen committed Oct 9, 2023
1 parent 09dbbb6 commit b1b7c3d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/FroshPlatformShareBasket.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ public function uninstall(UninstallContext $context): void
}

$connection = $this->container->get(Connection::class);
$connection->beginTransaction();
$connection->executeQuery('SET foreign_key_checks = 0;');
$connection->executeQuery('DROP TABLE IF EXISTS `frosh_share_basket`');
$connection->executeQuery('DROP TABLE IF EXISTS `frosh_share_basket_line_item`');
$connection->executeQuery('SET foreign_key_checks = 1;');
$connection->commit();
$connection->executeStatement('SET foreign_key_checks = 0;');
$connection->executeStatement('DROP TABLE IF EXISTS `frosh_share_basket`');
$connection->executeStatement('DROP TABLE IF EXISTS `frosh_share_basket_line_item`');
$connection->executeStatement('SET foreign_key_checks = 1;');
}
}

0 comments on commit b1b7c3d

Please sign in to comment.