Conditions | 4 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function execute() |
||
23 | { |
||
24 | $this->output->writeln(' STATUS MIGRATION ID MIGRATION NAME'); |
||
25 | $this->output->writeln('----------------------------------------'); |
||
26 | foreach ($this->manager->migrations() as $migration) { |
||
27 | if ($migration->isApplied()) { |
||
28 | $textFormat = " <info>%6s</info> %s <comment>%s</comment>"; |
||
29 | } else { |
||
30 | $textFormat = " <error>%6s</error> %s <comment>%s</comment>"; |
||
31 | } |
||
32 | $this->output->writeln(sprintf( |
||
33 | $textFormat, |
||
34 | $migration->isApplied() ? 'up ' : 'down ', |
||
35 | $migration->getId(), |
||
36 | $migration->getName() |
||
37 | )); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |