N°9144 - setup robustness

This commit is contained in:
odain
2026-05-05 16:46:49 +02:00
parent 99a5b47899
commit 73ebf663d6
5 changed files with 29 additions and 17 deletions

View File

@@ -89,6 +89,7 @@ class ApplicationInstallSequencer extends StepSequencer
return $this->ComputeNextStep($sStep);
case 'migrate-before':
$this->oRunTimeEnvironment->EnterMaintenanceMode($this->GetConfig());
if (array_key_exists($sStep, $this->oParams->Get('optional_steps', []))) {
$this->oRunTimeEnvironment->MigrateDataBeforeUpdateStructure($this->oParams->Get('mode'), $this->GetConfig());
}
@@ -139,6 +140,7 @@ class ApplicationInstallSequencer extends StepSequencer
case 'commit':
$this->oRunTimeEnvironment->Commit();
$this->oRunTimeEnvironment->ExitReadOnlyMode();
$this->oRunTimeEnvironment->ExitMaintenanceMode();
return $this->GetNextStep('', 'Completed', 100);
default: