diff --git a/database/database.mysql b/database/database.mysql index 920782aaa8b..8a6f8afa066 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -294,8 +294,10 @@ CREATE TABLE flood ( CREATE TABLE forum ( nid int(10) unsigned NOT NULL default '0', + vid int(10) unsigned NOT NULL default '0', tid int(10) unsigned NOT NULL default '0', PRIMARY KEY (nid), + KEY vid (vid), KEY tid (tid) ) TYPE=MyISAM; diff --git a/database/database.pgsql b/database/database.pgsql index f083a3bd942..367d9866235 100644 --- a/database/database.pgsql +++ b/database/database.pgsql @@ -291,11 +291,13 @@ CREATE TABLE flood ( CREATE TABLE forum ( nid integer NOT NULL default '0', + vid integer NOT NULL default '0', tid integer NOT NULL default '0', shadow integer NOT NULL default '0', PRIMARY KEY (nid) ); CREATE INDEX forum_tid_idx ON forum(tid); +CREATE INDEX forum_vid_idx ON forum(vid); -- -- Table structure for history