You are here

function system_update_167 in Drupal 5

Same name and namespace in other branches
  1. 4 database/updates.inc \system_update_167()

File

modules/system/system.install, line 2537

Code

function system_update_167() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {vocabulary_node_types} CHANGE type type varchar(32) NOT NULL default ''");
      break;
    case 'pgsql':
      db_change_column($ret, 'vocabulary_node_types', 'type', 'type', 'varchar(32)', array(
        'not null' => TRUE,
        'default' => "''",
      ));
      $ret[] = update_sql("ALTER TABLE {vocabulary_node_types} ADD PRIMARY KEY (vid, type)");
      break;
  }
  return $ret;
}