diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 37f94f9be7cdef774def56254d64f16a040007c9..3c5d62aa4bda467b1afa88d8b30cad1eee8c2b9b 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -212,9 +212,11 @@ class ConvertType extends Command implements CompletionAwareInterface { $output->writeln('<comment>can be included by specifying the --all-apps option.</comment>'); } + $continueConversion = !$input->isInteractive(); // assume yes for --no-interaction and no otherwise. + $question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', $continueConversion); + /** @var QuestionHelper $helper */ $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', false); if (!$helper->ask($input, $output, $question)) { return;