diff options
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index ec0a50cc6ca..09aa955283c 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -37,6 +37,7 @@ namespace OC; +use OC\DB\Connection; use OC\DB\MigrationService; use OC\Hooks\BasicEmitter; use OC\IntegrityCheck\Checker; @@ -298,7 +299,7 @@ class Updater extends BasicEmitter { $this->emit('\OC\Updater', 'dbUpgradeBefore'); // execute core migrations - $ms = new MigrationService('core', \OC::$server->getDatabaseConnection()); + $ms = new MigrationService('core', \OC::$server->get(Connection::class)); $ms->migrate(); $this->emit('\OC\Updater', 'dbUpgrade'); |