You are here

function locale_update_6004 in Drupal 6

Fix remaining inconsistent indexes.

Related topics

File

modules/locale/locale.install, line 150

Code

function locale_update_6004() {
  $ret = array();
  db_add_index($ret, 'locales_target', 'language', array(
    'language',
  ));
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_drop_index($ret, 'locales_source', 'source');
      db_add_index($ret, 'locales_source', 'source', array(
        array(
          'source',
          30,
        ),
      ));
      break;
  }
  return $ret;
}