| Conditions | 3 |
| Paths | 3 |
| Total Lines | 30 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param Result $result |
||
| 17 | * @param Varien_Db_Adapter_Interface $dbAdapter |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | protected function checkImplementation(Result $result, Varien_Db_Adapter_Interface $dbAdapter) |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Check Version |
||
| 24 | */ |
||
| 25 | $mysqlVersion = $dbAdapter->fetchOne('SELECT VERSION()'); |
||
| 26 | $minimumVersionFound = version_compare($mysqlVersion, '4.1.20', '>='); |
||
| 27 | |||
| 28 | if ($minimumVersionFound) { |
||
| 29 | $result->setStatus(Result::STATUS_OK); |
||
| 30 | $result->setMessage("<info>MySQL Version <comment>$mysqlVersion</comment> found.</info>"); |
||
| 31 | } else { |
||
| 32 | $result->setStatus(Result::STATUS_ERROR); |
||
| 33 | $result->setMessage( |
||
| 34 | "<error>MySQL Version <comment>>$mysqlVersion</comment> found. Upgrade your MySQL Version.</error>" |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 |