@ -1,11 +1,11 @@
-- Roundcube Webmail initial database structure
- -
-- Sequence "user _id s"
-- Name: user _id s; Type: SEQUENCE; Schema: public; Owner: postgres
-- Sequence "user s _seq "
-- Name: user s _seq ; Type: SEQUENCE; Schema: public; Owner: postgres
- -
CREATE SEQUENCE user _id s
CREATE SEQUENCE user s _seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
@ -17,7 +17,7 @@ CREATE SEQUENCE user_ids
- -
CREATE TABLE users (
user_id integer DEFAULT nextval ( ' user _id s' : : text ) PRIMARY KEY ,
user_id integer DEFAULT nextval ( ' user s _seq ' : : text ) PRIMARY KEY ,
username varchar ( 128 ) DEFAULT ' ' NOT NULL ,
mail_host varchar ( 128 ) DEFAULT ' ' NOT NULL ,
created timestamp with time zone DEFAULT now ( ) NOT NULL ,
@ -45,11 +45,11 @@ CREATE INDEX session_changed_idx ON session (changed);
- -
-- Sequence "identit y_ids "
-- Name: identit y_ids ; Type: SEQUENCE; Schema: public; Owner: postgres
-- Sequence "identit ies_seq "
-- Name: identit ies_seq ; Type: SEQUENCE; Schema: public; Owner: postgres
- -
CREATE SEQUENCE identit y_ids
CREATE SEQUENCE identit ies_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
@ -62,7 +62,7 @@ CREATE SEQUENCE identity_ids
- -
CREATE TABLE identities (
identity_id integer DEFAULT nextval ( ' identit y_ids ' : : text ) PRIMARY KEY ,
identity_id integer DEFAULT nextval ( ' identit ies_seq ' : : text ) PRIMARY KEY ,
user_id integer NOT NULL
REFERENCES users ( user_id ) ON DELETE CASCADE ON UPDATE CASCADE ,
changed timestamp with time zone DEFAULT now ( ) NOT NULL ,
@ -82,11 +82,11 @@ CREATE INDEX identities_email_idx ON identities (email, del);
- -
-- Sequence "contact _id s"
-- Name: contact _id s; Type: SEQUENCE; Schema: public; Owner: postgres
-- Sequence "contact s _seq "
-- Name: contact s _seq ; Type: SEQUENCE; Schema: public; Owner: postgres
- -
CREATE SEQUENCE contact _id s
CREATE SEQUENCE contact s _seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
@ -99,7 +99,7 @@ CREATE SEQUENCE contact_ids
- -
CREATE TABLE contacts (
contact_id integer DEFAULT nextval ( ' contact _id s' : : text ) PRIMARY KEY ,
contact_id integer DEFAULT nextval ( ' contact s _seq ' : : text ) PRIMARY KEY ,
user_id integer NOT NULL
REFERENCES users ( user_id ) ON DELETE CASCADE ON UPDATE CASCADE ,
changed timestamp with time zone DEFAULT now ( ) NOT NULL ,
@ -115,11 +115,11 @@ CREATE TABLE contacts (
CREATE INDEX contacts_user_id_idx ON contacts ( user_id , del ) ;
- -
-- Sequence "contactgroups_ id s"
-- Name: contactgroups_ id s; Type: SEQUENCE; Schema: public; Owner: postgres
-- Sequence "contactgroups_ seq "
-- Name: contactgroups_ seq ; Type: SEQUENCE; Schema: public; Owner: postgres
- -
CREATE SEQUENCE contactgroups_ id s
CREATE SEQUENCE contactgroups_ seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
@ -131,7 +131,7 @@ CREATE SEQUENCE contactgroups_ids
- -
CREATE TABLE contactgroups (
contactgroup_id integer DEFAULT nextval ( ' contactgroups_ id s' : : text ) PRIMARY KEY ,
contactgroup_id integer DEFAULT nextval ( ' contactgroups_ seq ' : : text ) PRIMARY KEY ,
user_id integer NOT NULL
REFERENCES users ( user_id ) ON DELETE CASCADE ON UPDATE CASCADE ,
changed timestamp with time zone DEFAULT now ( ) NOT NULL ,
@ -238,11 +238,11 @@ CREATE TABLE dictionary (
) ;
- -
-- Sequence "searches_ id s"
-- Name: searches_ id s; Type: SEQUENCE; Schema: public; Owner: postgres
-- Sequence "searches_ seq "
-- Name: searches_ seq ; Type: SEQUENCE; Schema: public; Owner: postgres
- -
CREATE SEQUENCE search _id s
CREATE SEQUENCE search es _seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
@ -254,7 +254,7 @@ CREATE SEQUENCE search_ids
- -
CREATE TABLE searches (
search_id integer DEFAULT nextval ( ' search _id s' : : text ) PRIMARY KEY ,
search_id integer DEFAULT nextval ( ' search es _seq ' : : text ) PRIMARY KEY ,
user_id integer NOT NULL
REFERENCES users ( user_id ) ON DELETE CASCADE ON UPDATE CASCADE ,
" type " smallint DEFAULT 0 NOT NULL ,
@ -274,4 +274,4 @@ CREATE TABLE "system" (
value text
) ;
INSERT INTO system ( name , value ) VALUES ( ' roundcube-version ' , ' 20130 11 700' ) ;
INSERT INTO system ( name , value ) VALUES ( ' roundcube-version ' , ' 20130 42 700' ) ;