diff --git a/classes/TaskRunner/Upgrade/UpgradeDb.php b/classes/TaskRunner/Upgrade/UpgradeDb.php index f2bd1d8482..ce0bde60f0 100644 --- a/classes/TaskRunner/Upgrade/UpgradeDb.php +++ b/classes/TaskRunner/Upgrade/UpgradeDb.php @@ -53,8 +53,6 @@ public function run() $this->next = 'upgradeModules'; $this->logger->info($this->translator->trans('Database upgraded. Now upgrading your Addons modules...', array(), 'Modules.Autoupgrade.Admin')); - $this->container->getSymfonyAdapter()->clearMigrationCache(); - return true; } @@ -72,6 +70,7 @@ public function init() // Migrating settings file $this->container->initPrestaShopAutoloader(); (new SettingsFileWriter($this->translator))->migrateSettingsFile($this->logger); + $this->container->getSymfonyAdapter()->clearMigrationCache(); parent::init(); } }