function system_update_139 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_139()
File
- modules/
system/ system.install, line 1697
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 unsigned NOT NULL default '0'");
break;
}
return $ret;
}