diff options
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 6d08e5d4cc0..464344d2209 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -32,6 +32,7 @@ namespace OC; +use OC\DB\MigrationService; use OC\Hooks\BasicEmitter; use OC\IntegrityCheck\Checker; use OC_App; @@ -300,8 +301,11 @@ class Updater extends BasicEmitter { protected function doCoreUpgrade() { $this->emit('\OC\Updater', 'dbUpgradeBefore'); - // do the real upgrade - \OC_DB::updateDbFromStructure(\OC::$SERVERROOT . '/db_structure.xml'); + // execute core migrations + if (is_dir(\OC::$SERVERROOT . '/core/Migrations')) { + $ms = new MigrationService('core', \OC::$server->getDatabaseConnection()); + $ms->migrate(); + } $this->emit('\OC\Updater', 'dbUpgrade'); } |