diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-19 12:13:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-25 12:47:39 +0200 |
commit | 3fedfe67b9d89a1d83c40b6290c88a304da1c321 (patch) | |
tree | 638b7754f877547bad4cec60018ca6f48a0f7d0e /core/Command/Db | |
parent | 42ed7a18cc841d289b6bcc83885bf93165200e09 (diff) | |
download | nextcloud-server-3fedfe67b9d89a1d83c40b6290c88a304da1c321.tar.gz nextcloud-server-3fedfe67b9d89a1d83c40b6290c88a304da1c321.zip |
Use default connection parameters for utf8 4byte support
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Db')
-rw-r--r-- | core/Command/Db/ConvertType.php | 6 |
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'); } |