protected Schema::shortenIndex(&$index)
Helper function for normalizeIndexes().
Shortens an index to 191 characters.
Parameters
array $index: The index array to be used in createKeySql.
See also
Drupal\Core\Database\Driver\mysql\Schema::createKeySql()
Drupal\Core\Database\Driver\mysql\Schema::normalizeIndexes()
File
- core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 345
Class
- Schema
- MySQL implementation of \Drupal\Core\Database\Schema.
Namespace
Drupal\Core\Database\Driver\mysql
Code
1 2 3 4 5 6 7 8 9 10 | protected function shortenIndex(& $index ) { if ( is_array ( $index )) { if ( $index [1] > 191) { $index [1] = 191; } } else { $index = array ( $index , 191); } } |
Please login to continue.