Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
enable option '--no-interaction' for db:convert-type
Signed-off-by: Bernhard Ostertag <[email protected]>

Signed-off-by: Bernhard Ostertag <[email protected]>
  • Loading branch information
BernieO committed Dec 26, 2019
commit 56a4c4b2231cde15a1b9c907413d4a5e537e7446
12 changes: 7 additions & 5 deletions core/Command/Db/ConvertType.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,14 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$output->writeln('<comment>can be included by specifying the --all-apps option.</comment>');
}

/** @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);
Expand Down