function locale_update_9101

Delete an unnecessary index on the locales_location table.

File

core/modules/locale/locale.install, line 313

Code

function locale_update_9101() {
    $schema = \Drupal::database()->schema();
    $table = 'locales_location';
    if ($schema->indexExists($table, 'string_id')) {
        $schema->dropIndex($table, 'string_id');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.