-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsql.txt
39 lines (37 loc) · 1.37 KB
/
sql.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CREATE TABLE `wp_forums` (
`forum_ID` bigint(20) unsigned NOT NULL auto_increment,
`forum_blog_ID` bigint(20) NOT NULL,
`forum_name` TEXT NOT NULL,
`forum_nicename` TEXT,
`forum_description` TEXT,
`forum_topics` bigint(20) NOT NULL default '0',
`forum_posts` bigint(20) NOT NULL default '0',
`forum_color_one` VARCHAR(255),
`forum_color_two` VARCHAR(255),
`forum_color_header` VARCHAR(255),
`forum_color_border` VARCHAR(255),
`forum_border_size` VARCHAR(255),
PRIMARY KEY (`forum_ID`)
) ENGINE=MyISAM;
CREATE TABLE `wp_forums_topics` (
`topic_ID` bigint(20) unsigned NOT NULL auto_increment,
`topic_forum_ID` bigint(20) NOT NULL,
`topic_title` TEXT NOT NULL,
`topic_author` bigint(20) NOT NULL,
`topic_last_author` bigint(20) NOT NULL,
`topic_stamp` bigint(30) NOT NULL,
`topic_last_updated_stamp` bigint(30) NOT NULL,
`topic_closed` tinyint(1) NOT NULL default '0',
`topic_sticky` tinyint(1) NOT NULL default '0',
`topic_posts` bigint(20) NOT NULL default '0',
PRIMARY KEY (`topic_ID`)
) ENGINE=MyISAM;
CREATE TABLE `wp_forums_posts` (
`post_ID` bigint(20) unsigned NOT NULL auto_increment,
`post_forum_ID` bigint(20) NOT NULL,
`post_topic_ID` bigint(20) NOT NULL,
`post_author` bigint(20) NOT NULL,
`post_content` TEXT,
`post_stamp` bigint(30) NOT NULL,
PRIMARY KEY (`post_ID`)
) ENGINE=MyISAM;