From 79d7c26b8a7c5ed99f5002163343132302d70111 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 7 Jul 2017 12:01:11 +0200 Subject: [PATCH] Register autoloading before running migrations Signed-off-by: Joas Schilling --- lib/private/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Installer.php b/lib/private/Installer.php index 60b0336fb5a..4d7e5016653 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -131,6 +131,7 @@ class Installer { // check for required dependencies \OC_App::checkAppDependencies($this->config, $l, $info); + \OC_App::registerAutoloading($appId, $basedir); //install the database if(is_file($basedir.'/appinfo/database.xml')) { @@ -144,7 +145,6 @@ class Installer { $ms->migrate(); } - \OC_App::registerAutoloading($appId, $basedir); \OC_App::setupBackgroundJobs($info['background-jobs']); if(isset($info['settings']) && is_array($info['settings'])) { \OC::$server->getSettingsManager()->setupSettings($info['settings']);