You are here

function system_update_128 in Drupal 4

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

File

database/updates.inc, line 428

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;
}