From de78be3891c7a44699dab7d276276061dd62586b Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 9 May 2014 12:31:08 +0200 Subject: [PATCH] Store normalised DBMS type in $type. --- core/command/db/converttype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index 4f3afb949e..809374950d 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.' );