@@ 55-62 (lines=8) @@ | ||
52 | } |
|
53 | ||
54 | // if no argument, migrate to current |
|
55 | if ($this->migration->current() === false) { |
|
56 | $this->stdio->errln( |
|
57 | '<<red>>' . $this->migration->error_string() . '<<reset>>' |
|
58 | ); |
|
59 | return Status::FAILURE; |
|
60 | } else { |
|
61 | $this->showVersions(); |
|
62 | } |
|
63 | } |
|
64 | ||
65 | private function migrateToVersion($version) |
|
@@ 67-72 (lines=6) @@ | ||
64 | ||
65 | private function migrateToVersion($version) |
|
66 | { |
|
67 | if ($this->migration->version($version) === false) { |
|
68 | $this->stdio->errln( |
|
69 | '<<red>>' . $this->migration->error_string() . '<<reset>>' |
|
70 | ); |
|
71 | return false; |
|
72 | } |
|
73 | ||
74 | return true; |
|
75 | } |