Add message for converting to SQLite being unsupported.

This commit is contained in:
Andreas Fischer 2014-04-15 17:14:26 +02:00
parent 9823d54bb8
commit 5fe25868bc

View file

@ -110,6 +110,13 @@ class ConvertType extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
$type = $input->getArgument('type');
if ($this->connectionFactory->normalizeType($type) === 'sqlite3') {
$output->writeln(sprintf(
'<error>Converting to SQLite (sqlite3) is currently not supported.</error>',
$type
));
return 1;
}
if ($type === $this->config->getValue('dbtype', '')) {
$output->writeln(sprintf(
'<error>Can not convert from %1$s to %1$s.</error>',