Skip to content

Commit

Permalink
Request Restart after UpgradeDb
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed May 3, 2019
1 parent 195fc0b commit 81ae146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/TaskRunner/Upgrade/AllUpgradeTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class AllUpgradeTasks extends ChainedTasks
{
const initialTask = 'upgradeNow';
const TASKS_WITH_RESTART = ['upgradeFiles', 'upgradeDb'];

protected $step = self::initialTask;

Expand Down Expand Up @@ -83,7 +84,7 @@ protected function checkIfRestartRequested(AjaxResponse $response)
return false;
}

if (!in_array($this->step, array('upgradeFiles'))) {
if (!in_array($this->step, self::TASKS_WITH_RESTART)) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected function initConstants()
}*/

// Container may be needed to run upgrade scripts
$this->cleanFolders();
$this->container->getSymfonyAdapter()->initAppKernel();
}

Expand Down

0 comments on commit 81ae146

Please sign in to comment.