diff --git a/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php b/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php index dab7cbb66f..447863392a 100644 --- a/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php +++ b/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php @@ -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 == Available Migration Versions\n"); $this->showVersions($migrations, $configuration, $output); } - if (!empty($executedUnavailableMigrations)) { + if ($numExecutedUnavailableMigrations) { $output->writeln("\n == Previously Executed Unavailable Migration Versions\n"); - $this->showVersions($executedUnavailableMigrations, $configuration, $output); + foreach ($executedUnavailableMigrations as $executedUnavailableMigration) { + $output->writeln(' >> ' . $configuration->formatVersion($executedUnavailableMigration) . + ' (' . $executedUnavailableMigration . ')'); + } } } }