mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Updated postgres schema
git-svn-id: file:///svn/phpbb/trunk@381 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
18476eeae9
commit
0a99b25500
1 changed files with 42 additions and 15 deletions
|
@ -18,34 +18,61 @@ CREATE SEQUENCE phpbb_themes_id_seq start 1 increment 1 maxvalue 2147483647 minv
|
||||||
CREATE SEQUENCE phpbb_topics_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
CREATE SEQUENCE phpbb_topics_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
||||||
CREATE SEQUENCE phpbb_users_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
CREATE SEQUENCE phpbb_users_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
||||||
CREATE SEQUENCE phpbb_words_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
CREATE SEQUENCE phpbb_words_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
||||||
|
CREATE SEQUENCE phpbb_groups_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
|
||||||
|
|
||||||
/* --------------------------------------------------------
|
/* --------------------------------------------------------
|
||||||
Table structure for table phpbb_auth_forums
|
Table structure for table phpbb_auth_forums
|
||||||
-------------------------------------------------------- */
|
-------------------------------------------------------- */
|
||||||
CREATE TABLE phpbb_auth_forums (
|
CREATE TABLE phpbb_auth_forums (
|
||||||
forum_id int4 DEFAULT '0' NOT NULL,
|
forum_id int4 DEFAULT '0' NOT NULL,
|
||||||
auth_read int2,
|
auth_view int2 DEFAULT '0' NOT NULL,
|
||||||
auth_post int2,
|
auth_read int2 DEFAULT '0' NOT NULL,
|
||||||
auth_reply int2,
|
auth_post int2 DEFAULT '0' NOT NULL,
|
||||||
auth_edit int2,
|
auth_reply int2 DEFAULT '0' NOT NULL,
|
||||||
auth_delete int2,
|
auth_edit int2 DEFAULT '0' NOT NULL,
|
||||||
auth_list int2
|
auth_delete int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_votecreate int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_vote int2 DEFAULT '0' NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------
|
/* --------------------------------------------------------
|
||||||
Table structure for table phpbb_auth_groups
|
Table structure for table phpbb_auth_access
|
||||||
-------------------------------------------------------- */
|
-------------------------------------------------------- */
|
||||||
CREATE TABLE phpbb_auth_groups (
|
CREATE TABLE phpbb_auth_access (
|
||||||
group_id int4 DEFAULT '0' NOT NULL,
|
group_id int DEFAULT '0' NOT NULL,
|
||||||
forum_id int2 DEFAULT '0' NOT NULL,
|
forum_id int2 DEFAULT '0' NOT NULL,
|
||||||
can_read int2,
|
auth_view int2 DEFAULT '0' NOT NULL,
|
||||||
can_post int2,
|
auth_read int2 DEFAULT '0' NOT NULL,
|
||||||
can_reply int2,
|
auth_post int2 DEFAULT '0' NOT NULL,
|
||||||
can_edit int2,
|
auth_reply int2 DEFAULT '0' NOT NULL,
|
||||||
can_delete int2,
|
auth_edit int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_delete int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_votecreate int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_vote int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_mod int2 DEFAULT '0' NOT NULL,
|
||||||
|
auth_admin int2 DEFAULT '0' NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
/* --------------------------------------------------------
|
||||||
|
Table structure for table phpbb_user_group
|
||||||
|
-------------------------------------------------------- */
|
||||||
|
CREATE TABLE phpbb_user_group (
|
||||||
|
group_id int DEFAULT '0' NOT NULL,
|
||||||
|
user_id int DEFAULT '0' NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
/* --------------------------------------------------------
|
||||||
|
Table structure for table phpbb_groups
|
||||||
|
-------------------------------------------------------- */
|
||||||
|
CREATE TABLE phpbb_groups (
|
||||||
|
group_id int DEFAULT nextval('phpbb_groups_id_seq'::text) NOT NULL,
|
||||||
|
group_name varchar(100) NOT NULL,
|
||||||
|
group_note varchar(255) NOT NULL,
|
||||||
group_level int2 DEFAULT '0' NOT NULL,
|
group_level int2 DEFAULT '0' NOT NULL,
|
||||||
group_ban int2
|
single_user int2 DEFAULT '0' NOT NULL,
|
||||||
|
CONSTRAINT phpbb_groups_pkey PRIMARY KEY (group_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue