Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

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.