function Tasks::ensureInnoDbAvailable

Tasks::ensureInnoDbAvailable()

Ensure that InnoDB is available.

File

core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 143

Class

Tasks
Specifies installation tasks for MySQL and equivalent databases.

Namespace

Drupal\Core\Database\Driver\mysql\Install

Code

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.'));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Driver!mysql!Install!Tasks.php/function/Tasks::ensureInnoDbAvailable/8.1.x