From a227a0f240f80e1dbc707845ffa397d9a9518347 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 19 Jul 2022 10:11:40 +0200 Subject: [PATCH] fix(upgrade): Fix upgrade broken due to commit without transaction (#11363) (#11390) Refs: MON-14331 Co-authored-by: jeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com> --- www/install/php/Update-22.04.1.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/install/php/Update-22.04.1.php b/www/install/php/Update-22.04.1.php index 501915c4adf..5cc65fac815 100644 --- a/www/install/php/Update-22.04.1.php +++ b/www/install/php/Update-22.04.1.php @@ -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` ( @@ -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();