summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-06-26 21:55:43 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-15 18:50:11 +1200
commitf22ed5dc807392889a910d491b614c5d33efa8af (patch)
tree44044f62847e13f19f8bba6aafa1e777f1f53fe2
parentb5fa0ac1d1b6b3e4ecd0f39fe086702cf19eccdf (diff)
added group_block and group_alias tables
-rw-r--r--db/laconica_pg.sql20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql
index dae8b8faf..92331181d 100644
--- a/db/laconica_pg.sql
+++ b/db/laconica_pg.sql
@@ -499,6 +499,26 @@ create table design (
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),
+ blocker integer not null /* comment 'user making the block'*/ references "user" (id),
+ modified timestamp /* comment 'date of blocking'*/ ,
+
+ primary key (group_id, blocked)
+);
+
+create table group_alias (
+
+ alias varchar(64) /* comment 'additional nickname for the group'*/ ,
+ group_id integer not null /* comment 'group profile is blocked from'*/ references user_group (id),
+ modified timestamp /* comment 'date alias was created'*/,
+ primary key (alias)
+
+);
+create index group_alias_group_id_idx on group_alias (group_id);
+
+
/* Textsearch stuff */
create index textsearch_idx on profile using gist(textsearch);