| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function getVersion() |
||
| 33 | { |
||
| 34 | try { |
||
| 35 | return $this->getDbDriver()->getScalar('SELECT version FROM migration_version'); |
||
| 36 | } catch (\Exception $ex) { |
||
| 37 | throw new \Exception('This database does not have a migration version. Please use "migrate reset" to create one.'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 55 |