@@ 316-324 (lines=9) @@ | ||
313 | ||
314 | if ($version === null) { |
|
315 | $version = max(array_merge($versions, array_keys($migrations))); |
|
316 | } else { |
|
317 | if (0 != $version && !isset($migrations[$version])) { |
|
318 | $this->output->writeln(sprintf( |
|
319 | '<comment>warning</comment> %s is not a valid version', |
|
320 | $version |
|
321 | )); |
|
322 | return; |
|
323 | } |
|
324 | } |
|
325 | ||
326 | // are we migrating up or down? |
|
327 | $direction = $version > $current ? MigrationInterface::UP : MigrationInterface::DOWN; |
|
@@ 881-887 (lines=7) @@ | ||
878 | $version = $lastVersion['version']; |
|
879 | } |
|
880 | ||
881 | if (0 != $version && !isset($migrations[$version])) { |
|
882 | $this->output->writeln(sprintf( |
|
883 | '<comment>warning</comment> %s is not a valid version', |
|
884 | $version |
|
885 | )); |
|
886 | return; |
|
887 | } |
|
888 | ||
889 | $env->getAdapter()->toggleBreakpoint($migrations[$version]); |
|
890 |