protected Schema::shortenIndex(&$index)
Helper function for normalizeIndexes().
Shortens an index to 191 characters.
array $index: The index array to be used in createKeySql.
Drupal\Core\Database\Driver\mysql\Schema::createKeySql()
Drupal\Core\Database\Driver\mysql\Schema::normalizeIndexes()
protected function shortenIndex(&$index) { if (is_array($index)) { if ($index[1] > 191) { $index[1] = 191; } } else { $index = array($index, 191); } }
© 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!Schema.php/function/Schema::shortenIndex/8.1.x