function system_update_140 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_140()
File
- modules/
system/ system.install, line 1712
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;
}