You are here

function system_update_181 in Drupal 5

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

File

modules/system/system.install, line 3045

Code

function system_update_181() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {profile_fields} ADD autocomplete TINYint NOT NULL AFTER visibility");
      break;
    case 'pgsql':
      db_add_column($ret, 'profile_fields', 'autocomplete', 'smallint', array(
        'not null' => TRUE,
        'default' => 0,
      ));
      break;
  }
  return $ret;
}