moved design table earlier - needs to be before "user" becuase of the foreign key
This commit is contained in:
parent
57f53869e2
commit
47b2f1e082
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/* local and remote users have profiles */
|
/* local and remote users have profiles */
|
||||||
|
|
||||||
create sequence profile_seq;
|
create sequence profile_seq;
|
||||||
|
@ -41,6 +40,19 @@ create table sms_carrier (
|
||||||
modified timestamp /* comment 'date this record was modified ' */
|
modified timestamp /* comment 'date this record was modified ' */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create sequence design_seq;
|
||||||
|
create table design (
|
||||||
|
id bigint default nextval('design_seq') /* comment 'design ID'*/,
|
||||||
|
backgroundcolor integer /* comment 'main background color'*/ ,
|
||||||
|
contentcolor integer /*comment 'content area background color'*/ ,
|
||||||
|
sidebarcolor integer /*comment 'sidebar background color'*/ ,
|
||||||
|
textcolor integer /*comment 'text color'*/ ,
|
||||||
|
linkcolor integer /*comment 'link color'*/,
|
||||||
|
backgroundimage varchar(255) /*comment 'background image, if any'*/,
|
||||||
|
disposition int default 1 /*comment 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image'*/,
|
||||||
|
primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
/* local users */
|
/* local users */
|
||||||
|
|
||||||
create table "user" (
|
create table "user" (
|
||||||
|
@ -378,20 +390,6 @@ create table profile_block (
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create sequence design_seq;
|
|
||||||
create table design (
|
|
||||||
id bigint default nextval('design_seq') /* comment 'design ID'*/,
|
|
||||||
backgroundcolor integer /* comment 'main background color'*/ ,
|
|
||||||
contentcolor integer /*comment 'content area background color'*/ ,
|
|
||||||
sidebarcolor integer /*comment 'sidebar background color'*/ ,
|
|
||||||
textcolor integer /*comment 'text color'*/ ,
|
|
||||||
linkcolor integer /*comment 'link color'*/,
|
|
||||||
backgroundimage varchar(255) /*comment 'background image, if any'*/,
|
|
||||||
disposition int default 1 /*comment 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image'*/,
|
|
||||||
primary key (id)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
create sequence user_group_seq;
|
create sequence user_group_seq;
|
||||||
create table user_group (
|
create table user_group (
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user