Use default connection parameters for utf8 4byte support
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
42ed7a18cc
commit
3fedfe67b9
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue