You are here

function system_update_112 in Drupal 4

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

File

database/updates.inc, line 102

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(11) 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;
}