You are here

function system_update_129 in Drupal 5

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

File

modules/system/system.install, line 1551

Code

function system_update_129() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'mysql') {
    $ret[] = update_sql("ALTER TABLE {vocabulary} ADD tags tinyint 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;
}