summaryrefslogtreecommitdiffstats
path: root/lib/private/repair
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-07 10:26:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-07 14:54:55 +0100
commit190cc2bb6762c5f505e1e90bd582caa4fecb9cce (patch)
treee758dbc6da9f106d07146838507988b6a7d9bda1 /lib/private/repair
parentfddece9552a4b194cdce8c3916e33fa8597c9008 (diff)
downloadnextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.tar.gz
nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.zip
Remove OC_DB::getConnection
Diffstat (limited to 'lib/private/repair')
-rw-r--r--lib/private/repair/innodb.php2
-rw-r--r--lib/private/repair/searchlucenetables.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/repair/innodb.php b/lib/private/repair/innodb.php
index ab94c79468d..4bbfdcea20a 100644
--- a/lib/private/repair/innodb.php
+++ b/lib/private/repair/innodb.php
@@ -37,7 +37,7 @@ class InnoDB extends BasicEmitter implements \OC\RepairStep {
* Fix mime types
*/
public function run() {
- $connection = \OC_DB::getConnection();
+ $connection = \OC::$server->getDatabaseConnection();
if (!$connection->getDatabasePlatform() instanceof MySqlPlatform) {
$this->emit('\OC\Repair', 'info', array('Not a mysql database -> nothing to do'));
return;
diff --git a/lib/private/repair/searchlucenetables.php b/lib/private/repair/searchlucenetables.php
index 5ae8a300246..52d41083c45 100644
--- a/lib/private/repair/searchlucenetables.php
+++ b/lib/private/repair/searchlucenetables.php
@@ -52,10 +52,10 @@ class SearchLuceneTables extends BasicEmitter implements \OC\RepairStep {
* search_lucene will then reindex the fileids without a status when the next indexing job is executed
*/
public function run() {
- if (\OC_DB::tableExists('lucene_status')) {
+ $connection = \OC::$server->getDatabaseConnection();
+ if ($connection->tableExists('lucene_status')) {
$this->emit('\OC\Repair', 'info', array('removing duplicate entries from lucene_status'));
- $connection = \OC_DB::getConnection();
$query = $connection->prepare('
DELETE FROM `*PREFIX*lucene_status`
WHERE `fileid` IN (
t">"pluralForm" :"nplurals=2; plural=(n != 1);" }