vendor/cakephp/migrations/src/CakeManager.php 1 location
|
@@ 48-53 (lines=6) @@
|
| 45 |
|
$versions = $env->getVersions(); |
| 46 |
|
|
| 47 |
|
foreach ($this->getMigrations() as $migration) { |
| 48 |
|
if (in_array($migration->getVersion(), $versions)) { |
| 49 |
|
$status = 'up'; |
| 50 |
|
unset($versions[array_search($migration->getVersion(), $versions)]); |
| 51 |
|
} else { |
| 52 |
|
$status = 'down'; |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
$migrations[] = [ |
| 56 |
|
'status' => $status, |
vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php 1 location
|
@@ 109-115 (lines=7) @@
|
| 106 |
|
$versions = $env->getVersions(); |
| 107 |
|
|
| 108 |
|
foreach ($this->getMigrations() as $migration) { |
| 109 |
|
if (in_array($migration->getVersion(), $versions)) { |
| 110 |
|
$status = ' <info>up</info> '; |
| 111 |
|
unset($versions[array_search($migration->getVersion(), $versions)]); |
| 112 |
|
} else { |
| 113 |
|
$hasDownMigration = true; |
| 114 |
|
$status = ' <error>down</error> '; |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
$output->writeln( |
| 118 |
|
$status |