| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function run() |
||
| 28 | { |
||
| 29 | if (!$this->migrator->repositoryExists()) { |
||
| 30 | $this->echoError('No migration table found.'); |
||
| 31 | return 1; |
||
| 32 | } |
||
| 33 | |||
| 34 | $path = $this->args->getOpt('path', $this->migrationsPath); |
||
| 35 | $pretend = $this->args->getOpt('pretend', false); |
||
| 36 | $this->migrator->reset($path, $pretend); |
||
| 37 | $this->echoNotes($this->migrator->getNotes()); |
||
| 38 | return 0; |
||
| 39 | } |
||
| 40 | |||
| 52 |