- Adding the missing flood tables. Sorry.

4.6.x
Dries Buytaert 2004-11-16 18:46:48 +00:00
parent 9bf33e5ac8
commit 4dafd85f54
3 changed files with 34 additions and 1 deletions

View File

@ -262,6 +262,16 @@ CREATE TABLE filters (
INDEX (weight)
) TYPE=MyISAM;
--
-- Table structure for table 'flood'
--
CREATE TABLE flood (
event varchar(64) NOT NULL default '',
hostname varchar(128) NOT NULL default '',
timestamp int(11) NOT NULL default '0'
) TYPE=MyISAM;
--
-- Table structure for table 'forum'
--

View File

@ -263,6 +263,16 @@ CREATE TABLE filters (
CREATE INDEX filters_module_idx ON filters(module);
--
-- Table structure for table 'flood'
--
CREATE TABLE flood (
event varchar(64) NOT NULL default '',
hostname varchar(128) NOT NULL default '',
timestamp int(11) NOT NULL default '0'
);
--
-- Table structure for table 'forum'
--

View File

@ -87,7 +87,8 @@ $sql_updates = array(
"2004-10-16" => "update_108",
"2004-10-18" => "update_109",
"2004-10-31: first update since Drupal 4.5.0 release" => "update_110",
"2004-11-07" => "update_111"
"2004-11-07" => "update_111",
"2004-11-15" => "update_112"
);
function update_32() {
@ -1978,6 +1979,18 @@ function update_111() {
return $ret;
}
function update_112() {
$ret = array();
$ret[] = update_sql("CREATE TABLE flood (
event varchar(64) NOT NULL default '',
hostname varchar(128) NOT NULL default '',
timestamp int(11) NOT NULL default '0'
);");
return $ret;
}
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);