diff --git a/upgrades/7.0/scripts/BeforeUpgrade.php b/upgrades/7.0/scripts/BeforeUpgrade.php index 9370e0d642..b01745c947 100644 --- a/upgrades/7.0/scripts/BeforeUpgrade.php +++ b/upgrades/7.0/scripts/BeforeUpgrade.php @@ -37,18 +37,10 @@ class BeforeUpgrade { $this->container = $container; - $this->processCheckCli(); - $this->processCheckExtensions(); - } - private function processCheckCli(): void - { - $isCli = (substr(php_sapi_name(), 0, 3) == 'cli') ? true : false; - - if (!$isCli) { - throw new Error("This upgrade can be run only from CLI."); - } + // Load to prevent fail if run in a single process. + $container->get('entityManager')->getQueryBuilder()->update(); } private function processCheckExtensions(): void