| @@ 75-82 (lines=8) @@ | ||
| 72 | ||
| 73 | $helper = $this->getHelper('question'); |
|
| 74 | $question = new ConfirmationQuestion('Continue? (Y/N): ', false); |
|
| 75 | if ($class || $helper->ask($input, $output, $question)) { |
|
| 76 | foreach ($rollbackMigrations as $migrationClass) { |
|
| 77 | $output->writeln('Rollback: ' . $migrationClass); |
|
| 78 | $this->migrationService->down($migrationClass); |
|
| 79 | } |
|
| 80 | $output->writeln('Done!'); |
|
| 81 | return null; |
|
| 82 | } |
|
| 83 | ||
| 84 | $output->writeln('Cancel'); |
|
| 85 | return null; |
|
| @@ 80-87 (lines=8) @@ | ||
| 77 | ||
| 78 | $helper = $this->getHelper('question'); |
|
| 79 | $question = new ConfirmationQuestion('Continue? (Y/N): ', false); |
|
| 80 | if ($class || $helper->ask($input, $output, $question)) { |
|
| 81 | foreach ($newMigrations as $migrationClass) { |
|
| 82 | $output->writeln('Run: ' . $migrationClass); |
|
| 83 | $this->migrationService->up($migrationClass); |
|
| 84 | } |
|
| 85 | $output->writeln('Done!'); |
|
| 86 | return null; |
|
| 87 | } |
|
| 88 | ||
| 89 | $output->writeln('Cancel'); |
|
| 90 | return null; |
|