diff options
author | Bart Visscher <bartv@thisnet.nl> | 2014-02-11 17:59:50 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2014-02-11 17:59:50 +0100 |
commit | eede20c5acb4135f96f318a4ad0a146dd562861c (patch) | |
tree | 5db3e4e0b48838addb8cf0402ea4d18b7da42d5a /core | |
parent | b57299f72789fa3b8dd81778376c0f45d0af21a9 (diff) | |
download | nextcloud-server-eede20c5acb4135f96f318a4ad0a146dd562861c.tar.gz nextcloud-server-eede20c5acb4135f96f318a4ad0a146dd562861c.zip |
Check target DB type
Diffstat (limited to 'core')
-rw-r--r-- | core/command/db/convertfromsqlite.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/command/db/convertfromsqlite.php b/core/command/db/convertfromsqlite.php index cd3e494d7f2..71706580382 100644 --- a/core/command/db/convertfromsqlite.php +++ b/core/command/db/convertfromsqlite.php @@ -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 { |