function system_update_128 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_128()
File
- modules/
system/ system.install, line 1538
Code
function system_update_128() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql('ALTER TABLE {term_node} ADD PRIMARY KEY (tid,nid)');
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
$ret[] = update_sql('ALTER TABLE {term_node} ADD PRIMARY KEY (tid,nid)');
}
return $ret;
}