You are here

function system_update_117 in Drupal 5

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

File

modules/system/system.install, line 1331

Code

function system_update_117() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'mysql') {
    $ret[] = update_sql("CREATE TABLE {vocabulary_node_types} (\n                         vid int NOT NULL default '0',\n                         type varchar(16) NOT NULL default '',\n                         PRIMARY KEY (vid, type))");
  }
  else {
    if ($GLOBALS['db_type'] == 'pgsql') {
      $ret[] = update_sql("CREATE TABLE {vocabulary_node_types} (\n                         vid serial,\n                         type varchar(16) NOT NULL default '',\n                          PRIMARY KEY (vid, type)) ");
    }
  }
  return $ret;
}