aboutsummaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-05-09 12:31:08 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-05-09 12:31:08 +0200
commitde78be3891c7a44699dab7d276276061dd62586b (patch)
tree856aa144efa217cb1d6cecc912b5cd6ff2d06d0f /core/command
parent0a78fb49f560248bac130405dea2b6af9a813d89 (diff)
downloadnextcloud-server-de78be3891c7a44699dab7d276276061dd62586b.tar.gz
nextcloud-server-de78be3891c7a44699dab7d276276061dd62586b.zip
Store normalised DBMS type in $type.
Diffstat (limited to 'core/command')
-rw-r--r--core/command/db/converttype.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 4f3afb949e7..809374950d3 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -93,8 +93,8 @@ class ConvertType extends Command {
}
protected function validateInput(InputInterface $input, OutputInterface $output) {
- $type = $input->getArgument('type');
- if ($this->connectionFactory->normalizeType($type) === 'sqlite3') {
+ $type = $this->connectionFactory->normalizeType($input->getArgument('type'));
+ if ($type === 'sqlite3') {
throw new \InvalidArgumentException(
'Converting to SQLite (sqlite3) is currently not supported.'
);