function 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.