function Tasks::checkEngineVersion

Same name in this branch
  1. 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php \Drupal\Core\Database\Driver\mysql\Install\Tasks::checkEngineVersion()
Same name in other branches
  1. 9 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::checkEngineVersion()
  2. 9 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()
  3. 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()
  4. 11.x core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()

Check the engine version.

2 calls to Tasks::checkEngineVersion()
Tasks::checkEngineVersion in core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
Check the engine version.
Tasks::engineVersionRequirementsCheck in core/lib/Drupal/Core/Database/Install/Tasks.php
Checks engine version requirements for the status report.
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 201

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.", [
            '%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.