Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBernhard Ostertag <bernieo.code@gmx.de>2019-12-27 09:50:30 +0300
committerBernhard Ostertag <bernieo.code@gmx.de>2019-12-27 09:50:30 +0300
commitfe0e47bf5e80a284f1fe97513d6060550f1eeda8 (patch)
tree40042a932d0b84c7c786f91b6ba058cbc131fa66 /core
parenta0d786769d99b946928094eb2c7db9d6bf9b4a1c (diff)
enable option '--no-interaction' for db:convert-type
Signed-off-by: Bernhard Ostertag <bernieo.code@gmx.de>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/ConvertType.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 37f94f9be7c..8b6f2b10c75 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -212,12 +212,14 @@ class ConvertType extends Command implements CompletionAwareInterface {
$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);