|
|
|
@ -282,17 +282,17 @@ class ConvertType extends Command {
|
|
|
|
protected function saveDBInfo(InputInterface $input) {
|
|
|
|
protected function saveDBInfo(InputInterface $input) {
|
|
|
|
$type = $input->getArgument('type');
|
|
|
|
$type = $input->getArgument('type');
|
|
|
|
$username = $input->getArgument('username');
|
|
|
|
$username = $input->getArgument('username');
|
|
|
|
$dbhost = $input->getArgument('hostname');
|
|
|
|
$dbHost = $input->getArgument('hostname');
|
|
|
|
$dbname = $input->getArgument('database');
|
|
|
|
$dbName = $input->getArgument('database');
|
|
|
|
$password = $input->getOption('password');
|
|
|
|
$password = $input->getOption('password');
|
|
|
|
if ($input->getOption('port')) {
|
|
|
|
if ($input->getOption('port')) {
|
|
|
|
$dbhost .= ':'.$input->getOption('port');
|
|
|
|
$dbHost .= ':'.$input->getOption('port');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->config->setSystemValues([
|
|
|
|
$this->config->setSystemValues([
|
|
|
|
'dbtype' => $type,
|
|
|
|
'dbtype' => $type,
|
|
|
|
'dbname' => $dbname,
|
|
|
|
'dbname' => $dbName,
|
|
|
|
'dbhost' => $dbhost,
|
|
|
|
'dbhost' => $dbHost,
|
|
|
|
'dbuser' => $username,
|
|
|
|
'dbuser' => $username,
|
|
|
|
'dbpassword' => $password,
|
|
|
|
'dbpassword' => $password,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|