function system_update_117 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_117()
File
- database/
updates.inc, line 221
Code
function system_update_117() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("CREATE TABLE {vocabulary_node_types} (\n vid int(10) 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;
}