mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge post and post_text tables ... denormalising of topics and forums should result in minimal fx on speed in 2.2
git-svn-id: file:///svn/phpbb/trunk@3537 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
108dbfe382
commit
dca34f5db9
1 changed files with 9 additions and 21 deletions
|
@ -332,35 +332,23 @@ CREATE TABLE phpbb_posts (
|
||||||
poster_ip varchar(40) NOT NULL,
|
poster_ip varchar(40) NOT NULL,
|
||||||
post_time int(11) DEFAULT '0' NOT NULL,
|
post_time int(11) DEFAULT '0' NOT NULL,
|
||||||
post_approved tinyint(1) DEFAULT '1' NOT NULL,
|
post_approved tinyint(1) DEFAULT '1' NOT NULL,
|
||||||
post_username varchar(30),
|
|
||||||
enable_bbcode tinyint(1) DEFAULT '1' NOT NULL,
|
enable_bbcode tinyint(1) DEFAULT '1' NOT NULL,
|
||||||
enable_html tinyint(1) DEFAULT '0' NOT NULL,
|
enable_html tinyint(1) DEFAULT '0' NOT NULL,
|
||||||
enable_smilies tinyint(1) DEFAULT '1' NOT NULL,
|
enable_smilies tinyint(1) DEFAULT '1' NOT NULL,
|
||||||
enable_magic_url tinyint(1) DEFAULT '1' NOT NULL,
|
enable_magic_url tinyint(1) DEFAULT '1' NOT NULL,
|
||||||
enable_sig tinyint(1) DEFAULT '1' NOT NULL,
|
enable_sig tinyint(1) DEFAULT '1' NOT NULL,
|
||||||
|
post_username varchar(30),
|
||||||
|
post_subject varchar(60),
|
||||||
|
post_text text,
|
||||||
|
post_checksum varchar(32) NOT NULL,
|
||||||
|
post_encoding varchar(11) DEFAULT 'iso-8859-15' NOT NULL,
|
||||||
|
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
bbcode_uid varchar(10) NOT NULL,
|
||||||
post_edit_time int(11),
|
post_edit_time int(11),
|
||||||
post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
PRIMARY KEY (post_id),
|
PRIMARY KEY (post_id),
|
||||||
KEY forum_id (forum_id),
|
|
||||||
KEY topic_id (topic_id),
|
KEY topic_id (topic_id),
|
||||||
KEY poster_id (poster_id),
|
KEY poster_ip (poster_ip)
|
||||||
KEY post_time (post_time)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Table structure for table 'phpbb_posts_text'
|
|
||||||
#
|
|
||||||
CREATE TABLE phpbb_posts_text (
|
|
||||||
post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
|
||||||
bbcode_uid varchar(10) NOT NULL,
|
|
||||||
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
|
||||||
post_checksum varchar(32) NOT NULL,
|
|
||||||
post_subject varchar(60),
|
|
||||||
post_text text,
|
|
||||||
post_encoding varchar(11) DEFAULT 'iso-8859-1' NOT NULL,
|
|
||||||
PRIMARY KEY (post_id)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue