function Tasks::checkEngineVersion
Same name in this branch
- 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
- 9 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::checkEngineVersion()
- 9 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()
- 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkEngineVersion()
- 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\InstallCode
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.