summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Command/Db/ConvertType.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 554ab6cd21f..9b8284c9307 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -238,13 +238,13 @@ class ConvertType extends Command implements CompletionAwareInterface {
protected function getToDBConnection(InputInterface $input, OutputInterface $output) {
$type = $input->getArgument('type');
- $connectionParams = array(
+ $connectionParams = $this->connectionFactory->createConnectionParams();
+ $connectionParams = array_merge($connectionParams, [
'host' => $input->getArgument('hostname'),
'user' => $input->getArgument('username'),
'password' => $input->getOption('password'),
'dbname' => $input->getArgument('database'),
- 'tablePrefix' => $this->config->getSystemValue('dbtableprefix', 'oc_'),
- );
+ ]);
if ($input->getOption('port')) {
$connectionParams['port'] = $input->getOption('port');
}