function system_update_129 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_129()
File
- database/
updates.inc, line 441
Code
function system_update_129() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("ALTER TABLE {vocabulary} ADD tags tinyint(3) unsigned default '0' NOT NULL");
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
db_add_column($ret, 'vocabulary', 'tags', 'smallint', array(
'default' => 0,
'not null' => TRUE,
));
}
return $ret;
}