Use default connection parameters for utf8 4byte support

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-07-19 12:13:23 +02:00
parent 42ed7a18cc
commit 3fedfe67b9
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 3 additions and 3 deletions

View File

@ -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');
}