function DatabaseTasks::checkEngineVersion

Check the engine version.

File

includes/install.inc, line 463

Class

DatabaseTasks
Database installer structure.

Code

protected function checkEngineVersion() {
    if ($this->minimumVersion() && version_compare(Database::getConnection()->version(), $this->minimumVersion(), '<')) {
        $this->fail(st("The database version %version is less than the minimum required version %minimum_version.", array(
            '%version' => Database::getConnection()->version(),
            '%minimum_version' => $this->minimumVersion(),
        )));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.