diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-07 10:26:00 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-07 14:54:55 +0100 |
commit | 190cc2bb6762c5f505e1e90bd582caa4fecb9cce (patch) | |
tree | e758dbc6da9f106d07146838507988b6a7d9bda1 /core/command | |
parent | fddece9552a4b194cdce8c3916e33fa8597c9008 (diff) | |
download | nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.tar.gz nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.zip |
Remove OC_DB::getConnection
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/db/converttype.php | 2 | ||||
-rw-r--r-- | core/command/db/generatechangescript.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index dd91d86b8d7..77e614a5853 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -166,7 +166,7 @@ class ConvertType extends Command { $this->validateInput($input, $output); $this->readPassword($input, $output); - $fromDB = \OC_DB::getConnection(); + $fromDB = \OC::$server->getDatabaseConnection(); $toDB = $this->getToDBConnection($input, $output); if ($input->getOption('clear-schema')) { diff --git a/core/command/db/generatechangescript.php b/core/command/db/generatechangescript.php index 956921206f9..c94a6a9b0e4 100644 --- a/core/command/db/generatechangescript.php +++ b/core/command/db/generatechangescript.php @@ -45,7 +45,7 @@ class GenerateChangeScript extends Command { $file = $input->getArgument('schema-xml'); - $schemaManager = new \OC\DB\MDB2SchemaManager(\OC_DB::getConnection()); + $schemaManager = new \OC\DB\MDB2SchemaManager(\OC::$server->getDatabaseConnection()); try { $result = $schemaManager->updateDbFromStructure($file, true); |