You are here

function system_update_167 in Drupal 4

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

File

database/updates.inc, line 1427

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