| @@ 278-280 (lines=3) @@ | ||
| 275 | $this->migrationsAlreadyDone = array(Migration::STATUS_DONE => 0, Migration::STATUS_FAILED => 0, Migration::STATUS_SKIPPED => 0, Migration::STATUS_STARTED => 0); |
|
| 276 | ||
| 277 | $allowedStatuses = array(Migration::STATUS_TODO); |
|
| 278 | if ($force) { |
|
| 279 | $allowedStatuses = array_merge($allowedStatuses, array(Migration::STATUS_DONE, Migration::STATUS_FAILED, Migration::STATUS_SKIPPED)); |
|
| 280 | } |
|
| 281 | ||
| 282 | // filter away all migrations except 'to do' ones |
|
| 283 | $toExecute = array(); |
|
| @@ 259-261 (lines=3) @@ | ||
| 256 | $migrations = $migrationService->getMigrations(); |
|
| 257 | ||
| 258 | $allowedStatuses = array(Migration::STATUS_TODO); |
|
| 259 | if ($force) { |
|
| 260 | $allowedStatuses = array_merge($allowedStatuses, array(Migration::STATUS_DONE, Migration::STATUS_FAILED, Migration::STATUS_SKIPPED)); |
|
| 261 | } |
|
| 262 | ||
| 263 | // filter away all migrations except 'to do' ones |
|
| 264 | $toExecute = array(); |
|