Tasks::checkEngineVersion

protected Tasks::checkEngineVersion()

Check the engine version.

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 188

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function checkEngineVersion() {
  // Ensure that the database server has the right version.
  if ($this->minimumVersion() && version_compare(Database::getConnection()->version(), $this->minimumVersion(), '<')) {
    $this->fail(t("The database server version %version is less than the minimum required version %minimum_version.", array('%version' => Database::getConnection()->version(), '%minimum_version' => $this->minimumVersion())));
  }
}
doc_Drupal
2016-10-29 09:46:21
Comments
Leave a Comment

Please login to continue.