Commit 41e5f369 authored by Dries's avatar Dries
Browse files

- Patch #45810 by killes: vid is not updated when the forum node is stored...

- Patch #45810 by killes: vid is not updated when the forum node is stored with "sticky" or "promote to front" checked.
parent d958fad0
......@@ -335,8 +335,8 @@ 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),
PRIMARY KEY (vid),
KEY nid (nid),
KEY tid (tid)
) TYPE=MyISAM
/*!40100 DEFAULT CHARACTER SET utf8 */ ;
......
......@@ -318,10 +318,10 @@ CREATE TABLE forum (
nid integer NOT NULL default '0',
vid integer NOT NULL default '0',
tid integer NOT NULL default '0',
PRIMARY KEY (nid)
PRIMARY KEY (vid)
);
CREATE INDEX forum_tid_idx ON forum(tid);
CREATE INDEX forum_vid_idx ON forum(vid);
CREATE INDEX forum_vid_idx ON forum(nid);
--
-- Table structure for history
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment