You are here

function system_update_112 in Drupal 5

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

File

modules/system/system.install, line 1212

Code

function system_update_112() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'mysql') {
    $ret[] = update_sql("CREATE TABLE {flood} (\n      event varchar(64) NOT NULL default '',\n      hostname varchar(128) NOT NULL default '',\n      timestamp int NOT NULL default '0'\n     );");
  }
  elseif ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql("CREATE TABLE {flood} (\n      event varchar(64) NOT NULL default '',\n      hostname varchar(128) NOT NULL default '',\n      timestamp integer NOT NULL default 0\n     );");
  }
  return $ret;
}