| @@ 94-101 (lines=8) @@ | ||
| 91 | ||
| 92 | $output->writeln('<comment>This can take up to hours, depending on the number of files in your instance!</comment>'); |
|
| 93 | ||
| 94 | if ($input->isInteractive()) { |
|
| 95 | $helper = $this->getHelper('question'); |
|
| 96 | $question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', false); |
|
| 97 | ||
| 98 | if (!$helper->ask($input, $output, $question)) { |
|
| 99 | return 1; |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | $this->connection->migrateToSchema($schema->getWrappedSchema()); |
|
| 104 | ||
| @@ 88-97 (lines=10) @@ | ||
| 85 | /** @var QuestionHelper $helper */ |
|
| 86 | $helper = $this->getHelper('question'); |
|
| 87 | ||
| 88 | if (\OCP\App::isEnabled('encryption')) { |
|
| 89 | $output->writeln( |
|
| 90 | '<error>Warning: Resetting the password when using encryption will result in data loss!</error>' |
|
| 91 | ); |
|
| 92 | ||
| 93 | $question = new ConfirmationQuestion('Do you want to continue?'); |
|
| 94 | if (!$helper->ask($input, $output, $question)) { |
|
| 95 | return 1; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | $question = new Question('Enter a new password: '); |
|
| 100 | $question->setHidden(true); |
|