You are here

function system_update_139 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_139()

File

database/updates.inc, line 587

Code

function system_update_139() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'accesslog', 'timer', 'int', array(
        'not null' => TRUE,
        'default' => 0,
      ));
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {accesslog} ADD timer int(10) unsigned NOT NULL default '0'");
      break;
  }
  return $ret;
}