diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index 7e65d1fb66..7e0a41b1b1 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -102,6 +102,14 @@ class ConvertType extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { + if ($input->getArgument('type') === $this->config->getValue('dbtype', '')) { + $output->writeln(sprintf( + 'Can not convert from %1$s to %1$s.', + $input->getArgument('type') + )); + return 1; + } + $fromDB = \OC_DB::getConnection(); $toDB = $this->getToDBConnection($input, $output);