Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 17 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
26 | |||
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 | |||
41 | public static function register(Cli $cli) |
||
42 | { |
||
43 | $cli = static::registerDatabaseOpts($cli); |
||
52 |