You are here

protected function Tasks::checkEngineVersion in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()
  2. 8 core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php \Drupal\Core\Database\Driver\mysql\Install\Tasks::checkEngineVersion()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()

Check the engine version.

1 call to Tasks::checkEngineVersion()
Tasks::checkEngineVersion in core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
Check the engine version.
1 method overrides Tasks::checkEngineVersion()
Tasks::checkEngineVersion in core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
Check the engine version.

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 193
Contains \Drupal\Core\Database\Install\Tasks.

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