Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(upgrade): Fix upgrade broken due to commit without transaction (#…
Browse files Browse the repository at this point in the history
…11363) (#11390)

Refs: MON-14331

Co-authored-by: jeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
  • Loading branch information
kduret and jeremyjaouen authored Jul 19, 2022
1 parent 926d951 commit a227a0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/install/php/Update-22.04.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

$errorMessage = "Unable to update 'custom_configuration' column on 'provider_configuration' table";
updateOpenIdConfiguration($pearDB);
$pearDB->commit();

$errorMessage = "Unable to create 'security_provider_access_group_relation' table";
$pearDB->query("CREATE TABLE IF NOT EXISTS `security_provider_access_group_relation` (
Expand All @@ -49,8 +50,6 @@
REFERENCES `provider_configuration` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
");

$pearDB->commit();
} catch (\Exception $e) {
if ($pearDB->inTransaction()) {
$pearDB->rollBack();
Expand Down

0 comments on commit a227a0f

Please sign in to comment.