diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-13 13:50:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-13 13:50:06 +0000 |
commit | 5a90260d95e4618bf02e179a1bdd93a78aeeb4f9 (patch) | |
tree | 79895307e4362ec7633bde812d53586ee43cd9d6 /database | |
parent | 04ef7b163651c1e3841e683e08fae097673d7bb3 (diff) | |
download | brdo-5a90260d95e4618bf02e179a1bdd93a78aeeb4f9.tar.gz brdo-5a90260d95e4618bf02e179a1bdd93a78aeeb4f9.tar.bz2 |
- Patch #10775 by crackermackjack: fixed error in the database.mysql file that is incompatible with Mysql > 4.1.x.
- Patch #10786 by crackermackjack: fixed bug in session keys (bug in particular MySQL version).
Diffstat (limited to 'database')
-rw-r--r-- | database/database.mysql | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/database/database.mysql b/database/database.mysql index 2964018fc..45d864e7e 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -194,6 +194,21 @@ CREATE TABLE comments ( ) TYPE=MyISAM; -- +-- Table structre for table 'node_last_comment' +-- + +CREATE TABLE node_comment_statistics ( + nid int(10) unsigned NOT NULL auto_increment, + cid int(10) unsigned NOT NULL default '0', + last_comment_timestamp int(11) NOT NULL default '0', + last_comment_name varchar(60) default NULL, + last_comment_uid int(10) NOT NULL default '0', + comment_count int(10) unsigned NOT NULL default '0', + PRIMARY KEY (nid), + KEY node_comment_timestamp (last_comment_timestamp) +) TYPE=MyISAM; + +-- -- Table structure for table 'directory' -- @@ -227,7 +242,7 @@ CREATE TABLE files ( -- CREATE TABLE filter_formats ( - format int(4) NOT NULL default '0' auto_increment, + format int(4) NOT NULL auto_increment, name varchar(255) NOT NULL default '', roles varchar(255) NOT NULL default '', cache tinyint(2) NOT NULL default '0', @@ -252,8 +267,7 @@ CREATE TABLE filters ( CREATE TABLE forum ( nid int(10) unsigned NOT NULL default '0', - tid int(10) unsigned NOT NULL default '0', - shadow int(10) unsigned NOT NULL default '0', + tid int(10) unsigned NOT NULL default '0', PRIMARY KEY (nid), KEY tid (tid) ) TYPE=MyISAM; @@ -390,7 +404,8 @@ CREATE TABLE node ( KEY node_moderate (moderate), KEY node_promote_status (promote, status), KEY node_created (created), - KEY node_changed (changed) + KEY node_changed (changed), + KEY node_status_type (status, type, nid) ) TYPE=MyISAM; -- @@ -537,7 +552,7 @@ CREATE TABLE sessions ( timestamp int(11) NOT NULL default '0', session longtext, KEY uid (uid), - KEY sid (sid(4)), + KEY sid (sid), KEY timestamp (timestamp) ) TYPE=MyISAM; |