mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-14 03:25:37 +02:00
Some updates to postgres schema
git-svn-id: file:///svn/phpbb/trunk@915 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
30ca42f6cf
commit
714f77f6ce
@ -89,9 +89,9 @@ CREATE TABLE phpbb_config (
|
||||
board_disable int2 DEFAULT '0' NOT NULL,
|
||||
board_startdate int4,
|
||||
sitename varchar(100) NOT NULL,
|
||||
cookie_name char(20),
|
||||
cookie_path char(25),
|
||||
cookie_domain char(50),
|
||||
cookie_name varchar(20),
|
||||
cookie_path varchar(25),
|
||||
cookie_domain varchar(50),
|
||||
cookie_secure int2,
|
||||
session_length int4,
|
||||
allow_html int2 NOT NULL,
|
||||
@ -153,6 +153,8 @@ CREATE TABLE phpbb_forums (
|
||||
forum_posts int4 DEFAULT '0' NOT NULL,
|
||||
forum_topics int4 DEFAULT '0' NOT NULL,
|
||||
forum_last_post_id int4 DEFAULT '0' NOT NULL,
|
||||
prune_enable int2 DEFAULT '1' NOT NULL,
|
||||
prune_next int,
|
||||
auth_view int2 DEFAULT '0' NOT NULL,
|
||||
auth_read int2 DEFAULT '0' NOT NULL,
|
||||
auth_post int2 DEFAULT '0' NOT NULL,
|
||||
@ -163,7 +165,7 @@ CREATE TABLE phpbb_forums (
|
||||
auth_sticky int2 DEFAULT '0' NOT NULL,
|
||||
auth_votecreate int2 DEFAULT '0' NOT NULL,
|
||||
auth_vote int2 DEFAULT '0' NOT NULL,
|
||||
auth_attachments int2 DEFAULT '0' NOT NULL
|
||||
auth_attachments int2 DEFAULT '0' NOT NULL,
|
||||
CONSTRAINT phpbb_forums_pkey PRIMARY KEY (forum_id)
|
||||
);
|
||||
CREATE INDEX cat_id_phpbb_forums_index ON phpbb_forums (cat_id);
|
||||
@ -185,19 +187,6 @@ CREATE INDEX prune_id_phpbb_forum_prune_index ON phpbb_forum_prune (prune_id);
|
||||
CREATE INDEX forum_id_phpbb_forum_prune_index ON phpbb_forum_prune (forum_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_groups
|
||||
-------------------------------------------------------- */
|
||||
CREATE TABLE phpbb_groups (
|
||||
group_id int4 DEFAULT nextval('phpbb_groups_id_seq'::text) NOT NULL,
|
||||
group_type int2 DEFAULT '1' NOT NULL,
|
||||
group_name varchar(100) NOT NULL,
|
||||
group_description varchar(255) NOT NULL,
|
||||
group_moderator int4 NOT NULL,
|
||||
group_single_user int2 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_posts
|
||||
-------------------------------------------------------- */
|
||||
@ -424,9 +413,7 @@ CREATE INDEX forum_id_phpbb_topics_index ON phpbb_topics (forum_id);
|
||||
CREATE TABLE phpbb_topics_watch (
|
||||
topic_id int4,
|
||||
user_id int4,
|
||||
notify_status int2 NOT NULL default '0',
|
||||
KEY topic_id (topic_id),
|
||||
KEY user_id (user_id)
|
||||
notify_status int2 NOT NULL default '0'
|
||||
);
|
||||
CREATE INDEX _phpbb_topics_watch_index ON phpbb_topics_watch (topic_id, user_id);
|
||||
CREATE INDEX forum_id_phpbb_topics_index ON phpbb_topics (forum_id);
|
||||
@ -474,7 +461,6 @@ CREATE TABLE phpbb_users (
|
||||
user_allow_pm int2 DEFAULT '1' NOT NULL,
|
||||
user_allowavatar int2 DEFAULT '1' NOT NULL,
|
||||
user_allow_viewonline int2 DEFAULT '1' NOT NULL,
|
||||
user_notify_pm int2 DEFAULT '1' NOT NULL,
|
||||
user_rank int4 DEFAULT '0',
|
||||
user_avatar varchar(100),
|
||||
user_level int4 DEFAULT '1',
|
||||
|
Loading…
x
Reference in New Issue
Block a user