protected function 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())));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Install!Tasks.php/function/Tasks::checkEngineVersion/8.1.x