|
@@ -114,7 +114,7 @@ discard block |
|
|
block discarded – undo |
|
114
|
114
|
} |
|
115
|
115
|
|
|
116
|
116
|
$question = 'Are you sure you wish to continue? (y/n)'; |
|
117
|
|
- if (! $this->canExecute($question, $input, $output)) { |
|
|
117
|
+ if (!$this->canExecute($question, $input, $output)) { |
|
118
|
118
|
$output->writeln('<error>Migration cancelled!</error>'); |
|
119
|
119
|
|
|
120
|
120
|
return 1; |
|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
|
131
|
131
|
|
|
132
|
132
|
$cancelled = false; |
|
133
|
133
|
$migration->setNoMigrationException($input->getOption('allow-no-migration')); |
|
134
|
|
- $result = $migration->migrate($version, $dryRun, $timeAllqueries, function () use ($input, $output, &$cancelled) { |
|
|
134
|
+ $result = $migration->migrate($version, $dryRun, $timeAllqueries, function() use ($input, $output, &$cancelled) { |
|
135
|
135
|
$question = 'WARNING! You are about to execute a database migration' |
|
136
|
136
|
. ' that could result in schema changes and data lost.' |
|
137
|
137
|
. ' Are you sure you wish to continue? (y/n)'; |
|
@@ -166,7 +166,7 @@ discard block |
|
|
block discarded – undo |
|
166
|
166
|
*/ |
|
167
|
167
|
private function canExecute($question, InputInterface $input, OutputInterface $output) |
|
168
|
168
|
{ |
|
169
|
|
- if ($input->isInteractive() && ! $this->askConfirmation($question, $input, $output)) { |
|
|
169
|
+ if ($input->isInteractive() && !$this->askConfirmation($question, $input, $output)) { |
|
170
|
170
|
return false; |
|
171
|
171
|
} |
|
172
|
172
|
|