diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-07-15 13:36:15 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-07-15 18:51:12 +1200 |
commit | fc3b11bff954c90b93a240d39e5aea3462d0158a (patch) | |
tree | 3792e9b19f6d1ec633bb7417d53e7009f2f8097f | |
parent | 186b5a1674ae345829b57c495f590140424e04ad (diff) |
moved creation of design table earlier than user_group
-rw-r--r-- | db/laconica_pg.sql | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql index e70573bfb..78791adaa 100644 --- a/db/laconica_pg.sql +++ b/db/laconica_pg.sql @@ -1,4 +1,3 @@ - design_id integer comment 'id of a design' references design(id),
/* local and remote users have profiles */
create sequence profile_seq;
@@ -376,6 +375,20 @@ 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 table user_group (
@@ -489,19 +502,6 @@ create table file_to_post ( unique(file_id, post_id)
);
-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 table group_block (
group_id integer not null /* comment 'group profile is blocked from' */ references user_group (id),
blocked integer not null /* comment 'profile that is blocked' */references profile (id),
|