function system_update_111 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_111()
File
- modules/
system/ system.install, line 1197
Code
function system_update_111() {
$ret = array();
$ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'throttle_%'");
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql('ALTER TABLE {sessions} ADD PRIMARY KEY sid (sid)');
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
$ret[] = update_sql('ALTER TABLE {sessions} ADD UNIQUE(sid)');
}
return $ret;
}