You are here

function system_update_140 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_140()

File

database/updates.inc, line 602

Code

function system_update_140() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'mysql') {
    $ret[] = update_sql("ALTER TABLE {url_alias} ADD INDEX (src)");
  }
  elseif ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql("CREATE INDEX {url_alias}_src_idx ON {url_alias}(src)");
  }
  return $ret;
}