Skip to content

Commit

Permalink
fix "all migrated versions shown as unavailable executed" issue (part…
Browse files Browse the repository at this point in the history
…ial revert of d81cf0d)
  • Loading branch information
vytmic committed Oct 15, 2015
1 parent f4f5bdf commit 875849e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@ public function execute(InputInterface $input, OutputInterface $output)

if ($input->getOption('show-versions')) {
if ($migrations = $configuration->getMigrations()) {
$executedUnavailableMigrations = $migrations;
$output->writeln("\n <info>==</info> Available Migration Versions\n");

$this->showVersions($migrations, $configuration, $output);
}

if (!empty($executedUnavailableMigrations)) {
if ($numExecutedUnavailableMigrations) {
$output->writeln("\n <info>==</info> Previously Executed Unavailable Migration Versions\n");
$this->showVersions($executedUnavailableMigrations, $configuration, $output);
foreach ($executedUnavailableMigrations as $executedUnavailableMigration) {
$output->writeln(' <comment>>></comment> ' . $configuration->formatVersion($executedUnavailableMigration) .
' (<comment>' . $executedUnavailableMigration . '</comment>)');
}
}
}
}
Expand Down

0 comments on commit 875849e

Please sign in to comment.