Check target DB type
This commit is contained in:
parent
b57299f727
commit
eede20c5ac
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ class ConvertFromSqlite extends Command {
|
|||
$hostname = $input->getArgument('hostname');
|
||||
$dbname = $input->getArgument('database');
|
||||
|
||||
if (!isset(self::$type2driver[$type])) {
|
||||
throw new InvalidArgumentException('Unknown type: '.$type);
|
||||
}
|
||||
if ($input->getOption('password')) {
|
||||
$password = $input->getOption('password');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue