diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-07 20:13:16 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-07 20:13:16 +0100 |
commit | 1cc6fddead3f71d170557e99ef8676724cb58a6e (patch) | |
tree | 62afe797fb92bba787b98345264cbe10644c1863 /lib/private/repair.php | |
parent | e30740648686c6b9e6743f8551487274d43b006c (diff) | |
parent | 190cc2bb6762c5f505e1e90bd582caa4fecb9cce (diff) | |
download | nextcloud-server-1cc6fddead3f71d170557e99ef8676724cb58a6e.tar.gz nextcloud-server-1cc6fddead3f71d170557e99ef8676724cb58a6e.zip |
Merge pull request #21498 from owncloud/cleanup-OC_DB
Cleanup OC_DB methods
Diffstat (limited to 'lib/private/repair.php')
-rw-r--r-- | lib/private/repair.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/repair.php b/lib/private/repair.php index d870b472c4f..269fe4c5f09 100644 --- a/lib/private/repair.php +++ b/lib/private/repair.php @@ -136,10 +136,11 @@ class Repair extends BasicEmitter { * @return array of RepairStep instances */ public static function getBeforeUpgradeRepairSteps() { + $connection = \OC::$server->getDatabaseConnection(); $steps = [ new InnoDB(), - new Collation(\OC::$server->getConfig(), \OC_DB::getConnection()), - new SqliteAutoincrement(\OC_DB::getConnection()), + new Collation(\OC::$server->getConfig(), $connection), + new SqliteAutoincrement($connection), new SearchLuceneTables(), ]; |