Check target DB type

This commit is contained in:
Bart Visscher 2014-02-11 17:59:50 +01:00
parent b57299f727
commit eede20c5ac

View file

@ -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 {