diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index bd26c5e51543d..41d946b323daa 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -211,12 +211,14 @@ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln('can be included by specifying the --all-apps option.'); } - /** @var QuestionHelper $helper */ - $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', false); + if ($input->isInteractive()) { + /** @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; + if (!$helper->ask($input, $output, $question)) { + return; + } } } $intersectingTables = array_intersect($toTables, $fromTables);