function Tasks::ensureInnoDbAvailable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php \Drupal\Core\Database\Driver\mysql\Install\Tasks::ensureInnoDbAvailable()
Ensure that InnoDB is available.
File
- core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Install/ Tasks.php, line 148 - Contains \Drupal\Core\Database\Driver\mysql\Install\Tasks.
Class
- Tasks
- Specifies installation tasks for MySQL and equivalent databases.
Namespace
Drupal\Core\Database\Driver\mysql\InstallCode
function ensureInnoDbAvailable() {
$engines = Database::getConnection()
->query('SHOW ENGINES')
->fetchAllKeyed();
if (isset($engines['MyISAM']) && $engines['MyISAM'] == 'DEFAULT' && !isset($engines['InnoDB'])) {
$this
->fail(t('The MyISAM storage engine is not supported.'));
}
}