function locale_update_9101 in Drupal 9
Delete an unnecessary index on the locales_location table.
File
- core/
modules/ locale/ locale.install, line 313 - Install, update, and uninstall functions for the Locale module.
Code
function locale_update_9101() {
$schema = \Drupal::database()
->schema();
$table = 'locales_location';
if ($schema
->indexExists($table, 'string_id')) {
$schema
->dropIndex($table, 'string_id');
}
}