You are here

function i18n_string_update_7002 in Internationalization 7

Create new index in {locales_source}, performance improvement in sites with i18n.

File

i18n_string/i18n_string.install, line 243
Installation file for i18n_string module.

Code

function i18n_string_update_7002() {
  if (!db_index_exists('locales_source', 'textgroup_context')) {
    db_add_index('locales_source', 'textgroup_context', array(
      'textgroup',
      array(
        'context',
        50,
      ),
    ));
  }
}