mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Schema moves
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3199 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -63,7 +63,7 @@ CREATE TABLE phpbb_groups (
|
||||
CREATE TABLE phpbb_banlist (
|
||||
ban_id int4 DEFAULT nextval('phpbb_banlist_id_seq'::text) NOT NULL,
|
||||
ban_userid int4,
|
||||
ban_ip char(40),
|
||||
ban_ip char(8),
|
||||
ban_email varchar(255),
|
||||
CONSTRAINT phpbb_banlist_pkey PRIMARY KEY (ban_id)
|
||||
);
|
||||
@@ -135,18 +135,6 @@ CREATE INDEX forums_order_phpbb_forums_index ON phpbb_forums (forum_order);
|
||||
CREATE INDEX forum_last_post_id_phpbb_forums_index ON phpbb_forums (forum_last_post_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_forums_watch
|
||||
-------------------------------------------------------- */
|
||||
CREATE TABLE phpbb_forums_watch (
|
||||
forum_id int4,
|
||||
user_id int4,
|
||||
notify_status int2 NOT NULL default '0'
|
||||
);
|
||||
CREATE INDEX forum_id_phpbb_forums_watch_index ON phpbb_forums_watch (forum_id);
|
||||
CREATE INDEX user_id_phpbb_forums_watch_index ON phpbb_forums_watch (user_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_forum_prune
|
||||
-------------------------------------------------------- */
|
||||
@@ -171,7 +159,7 @@ CREATE TABLE phpbb_posts (
|
||||
poster_id int4 DEFAULT '0' NOT NULL,
|
||||
post_time int4 DEFAULT '0' NOT NULL,
|
||||
post_username varchar(25),
|
||||
poster_ip char(40) DEFAULT '' NOT NULL,
|
||||
poster_ip char(8) DEFAULT '' NOT NULL,
|
||||
enable_bbcode int2 DEFAULT '1' NOT NULL,
|
||||
enable_html int2 DEFAULT '0' NOT NULL,
|
||||
enable_smilies int2 DEFAULT '1' NOT NULL,
|
||||
@@ -208,11 +196,11 @@ CREATE TABLE phpbb_privmsgs (
|
||||
privmsgs_from_userid int4 DEFAULT '0' NOT NULL,
|
||||
privmsgs_to_userid int4 DEFAULT '0' NOT NULL,
|
||||
privmsgs_date int4 DEFAULT '0' NOT NULL,
|
||||
privmsgs_ip char(40) NOT NULL,
|
||||
privmsgs_ip char(8) NOT NULL,
|
||||
privmsgs_enable_bbcode int2 DEFAULT '1' NOT NULL,
|
||||
privmsgs_enable_html int2 DEFAULT '0' NOT NULL,
|
||||
privmsgs_enable_smilies int2 DEFAULT '1' NOT NULL,
|
||||
privmsgs_attach_sig int2 DEFAULT '1' NOT NULL,
|
||||
privmsgs_enable_smilies int2 DEFAULT '1' NOT NULL,
|
||||
privmsgs_attach_sig int2 DEFAULT '1' NOT NULL,
|
||||
CONSTRAINT phpbb_privmsgs_pkey PRIMARY KEY (privmsgs_id)
|
||||
);
|
||||
CREATE INDEX privmsgs_from_userid_index ON phpbb_privmsgs (privmsgs_from_userid);
|
||||
@@ -224,7 +212,7 @@ CREATE INDEX privmsgs_to_userid_index ON phpbb_privmsgs (privmsgs_to_userid);
|
||||
-------------------------------------------------------- */
|
||||
CREATE TABLE phpbb_privmsgs_text (
|
||||
privmsgs_text_id int4 DEFAULT '0' NOT NULL,
|
||||
privmsgs_bbcode_uid char(10) DEFAULT '0' NOT NULL,
|
||||
privmsgs_bbcode_uid char(10) DEFAULT '0' NOT NULL,
|
||||
privmsgs_text text,
|
||||
CONSTRAINT phpbb_privmsgs_text_pkey PRIMARY KEY (privmsgs_text_id)
|
||||
);
|
||||
@@ -259,9 +247,9 @@ CREATE INDEX session_id_phpbb_search_results ON phpbb_search_results (session_i
|
||||
Table structure for table phpbb_search_wordlist
|
||||
-------------------------------------------------------- */
|
||||
CREATE TABLE phpbb_search_wordlist (
|
||||
word_id int4 DEFAULT nextval('phpbb_search_wordlist_id_seq'::text) NOT NULL,
|
||||
word_text varchar(50) NOT NULL DEFAULT '',
|
||||
word_common int2 NOT NULL DEFAULT '0',
|
||||
word_id int4 DEFAULT nextval('phpbb_search_wordlist_id_seq'::text) NOT NULL,
|
||||
word_text varchar(50) NOT NULL DEFAULT '',
|
||||
word_common int2 NOT NULL DEFAULT '0',
|
||||
CONSTRAINT phpbb_search_wordlist_pkey PRIMARY KEY (word_text)
|
||||
);
|
||||
CREATE INDEX word_id_phpbb_search_wordlist ON phpbb_search_wordlist (word_id);
|
||||
@@ -276,6 +264,7 @@ CREATE TABLE phpbb_search_wordmatch (
|
||||
title_match int2 NOT NULL default '0'
|
||||
);
|
||||
CREATE INDEX word_id_phpbb_search_wordmatch ON phpbb_search_wordmatch (word_id);
|
||||
CREATE INDEX post_id_phpbb_search_wordmatch ON phpbb_search_wordmatch (post_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
@@ -286,7 +275,7 @@ CREATE TABLE phpbb_sessions (
|
||||
session_user_id int4 DEFAULT '0' NOT NULL,
|
||||
session_start int4 DEFAULT '0' NOT NULL,
|
||||
session_time int4 DEFAULT '0' NOT NULL,
|
||||
session_ip char(40) DEFAULT '0' NOT NULL,
|
||||
session_ip char(8) DEFAULT '0' NOT NULL,
|
||||
session_page int4 DEFAULT '0' NOT NULL,
|
||||
session_logged_in int2 DEFAULT '0' NOT NULL,
|
||||
CONSTRAINT phpbb_session_pkey PRIMARY KEY (session_id)
|
||||
@@ -352,8 +341,8 @@ CREATE TABLE phpbb_themes (
|
||||
span_class1 varchar(25),
|
||||
span_class2 varchar(25),
|
||||
span_class3 varchar(25),
|
||||
img_size_poll int2,
|
||||
img_size_privmsg int2,
|
||||
img_size_poll int2,
|
||||
img_size_privmsg int2,
|
||||
CONSTRAINT phpbb_themes_pkey PRIMARY KEY (themes_id)
|
||||
);
|
||||
|
||||
@@ -411,9 +400,9 @@ CREATE TABLE phpbb_topics (
|
||||
topic_status int2 DEFAULT '0' NOT NULL,
|
||||
topic_vote int2 DEFAULT '0' NOT NULL,
|
||||
topic_type int2 DEFAULT '0' NOT NULL,
|
||||
topic_first_post_id int4 DEFAULT '0' NOT NULL,
|
||||
topic_first_post_id int4 DEFAULT '0' NOT NULL,
|
||||
topic_last_post_id int4 DEFAULT '0' NOT NULL,
|
||||
topic_moved_id int4 DEFAULT '0' NOT NULL,
|
||||
topic_moved_id int4 DEFAULT '0' NOT NULL,
|
||||
CONSTRAINT phpbb_topics_pkey PRIMARY KEY (topic_id)
|
||||
);
|
||||
CREATE INDEX forum_id_phpbb_topics_index ON phpbb_topics (forum_id);
|
||||
@@ -457,9 +446,9 @@ CREATE TABLE phpbb_users (
|
||||
username varchar(25) DEFAULT '' NOT NULL,
|
||||
user_regdate int4 DEFAULT '0' NOT NULL,
|
||||
user_password varchar(32) DEFAULT '' NOT NULL,
|
||||
user_session_time int4 DEFAULT '0' NOT NULL,
|
||||
user_session_page int2 DEFAULT '0' NOT NULL,
|
||||
user_lastvisit int4 DEFAULT '0' NOT NULL,
|
||||
user_session_time int4 DEFAULT '0' NOT NULL,
|
||||
user_session_page int2 DEFAULT '0' NOT NULL,
|
||||
user_lastvisit int4 DEFAULT '0' NOT NULL,
|
||||
user_email varchar(255),
|
||||
user_icq varchar(15),
|
||||
user_website varchar(100),
|
||||
@@ -473,10 +462,10 @@ CREATE TABLE phpbb_users (
|
||||
user_yim varchar(255),
|
||||
user_msnm varchar(255),
|
||||
user_posts int4 DEFAULT '0' NOT NULL,
|
||||
user_new_privmsg int2 DEFAULT '0' NOT NULL,
|
||||
user_unread_privmsg int2 DEFAULT '0' NOT NULL,
|
||||
user_last_privmsg int4 DEFAULT '0' NOT NULL,
|
||||
user_emailtime int4,
|
||||
user_new_privmsg int2 DEFAULT '0' NOT NULL,
|
||||
user_unread_privmsg int2 DEFAULT '0' NOT NULL,
|
||||
user_last_privmsg int4 DEFAULT '0' NOT NULL,
|
||||
user_emailtime int4,
|
||||
user_viewemail int2,
|
||||
user_attachsig int2,
|
||||
user_allowhtml int2 DEFAULT '1',
|
||||
@@ -486,14 +475,14 @@ CREATE TABLE phpbb_users (
|
||||
user_allowavatar int2 DEFAULT '1' NOT NULL,
|
||||
user_allow_viewonline int2 DEFAULT '1' NOT NULL,
|
||||
user_rank int4 DEFAULT '0',
|
||||
user_avatar varchar(100),
|
||||
user_avatar_type int2 DEFAULT '0' NOT NULL,
|
||||
user_avatar varchar(100),
|
||||
user_avatar_type int2 DEFAULT '0' NOT NULL,
|
||||
user_level int4 DEFAULT '1',
|
||||
user_lang varchar(255),
|
||||
user_timezone decimal(4) DEFAULT '0' NOT NULL,
|
||||
user_timezone decimal(5) DEFAULT '0' NOT NULL,
|
||||
user_dateformat varchar(14) DEFAULT 'd M Y H:m' NOT NULL,
|
||||
user_notify_pm int2 DEFAULT '1' NOT NULL,
|
||||
user_popup_pm int2 DEFAULT '0' NOT NULL,
|
||||
user_notify_pm int2 DEFAULT '0' NOT NULL,
|
||||
user_popup_pm int2 DEFAULT '0' NOT NULL,
|
||||
user_notify int2,
|
||||
user_actkey varchar(32),
|
||||
user_newpasswd varchar(32),
|
||||
@@ -532,7 +521,7 @@ CREATE INDEX option_id_phpbb_vote_results_index ON phpbb_vote_results (vote_opti
|
||||
CREATE TABLE phpbb_vote_voters (
|
||||
vote_id int4 NOT NULL DEFAULT '0',
|
||||
vote_user_id int4 NOT NULL DEFAULT '0',
|
||||
vote_user_ip char(40) NOT NULL
|
||||
vote_user_ip char(8) NOT NULL
|
||||
);
|
||||
CREATE INDEX vote_id_phpbb_vote_voters_index ON phpbb_vote_voters (vote_id);
|
||||
CREATE INDEX vote_user_id_phpbb_vote_voters_index ON phpbb_vote_voters (vote_user_id);
|
||||
|
Reference in New Issue
Block a user