summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/command/db/converttype.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 9d03b705d12..a2fdab99ba3 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -282,17 +282,19 @@ class ConvertType extends Command {
protected function saveDBInfo(InputInterface $input) {
$type = $input->getArgument('type');
$username = $input->getArgument('username');
- $dbhost = $input->getArgument('hostname');
- $dbname = $input->getArgument('database');
+ $dbHost = $input->getArgument('hostname');
+ $dbName = $input->getArgument('database');
$password = $input->getOption('password');
if ($input->getOption('port')) {
- $dbhost .= ':'.$input->getOption('port');
+ $dbHost .= ':'.$input->getOption('port');
}
- $this->config->setSystemValue('dbtype', $type);
- $this->config->setSystemValue('dbname', $dbname);
- $this->config->setSystemValue('dbhost', $dbhost);
- $this->config->setSystemValue('dbuser', $username);
- $this->config->setSystemValue('dbpassword', $password);
+ $this->config->setSystemValues([
+ 'dbtype' => $type,
+ 'dbname' => $dbName,
+ 'dbhost' => $dbHost,
+ 'dbuser' => $username,
+ 'dbpassword' => $password,
+ ]);
}
}