summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-08-28 20:35:35 +1200
committerBrenda Wallace <shiny@cpan.org>2009-08-28 20:35:35 +1200
commitf4117119ffca76b0d7ff14bd1f99b607f248151b (patch)
tree77b4fbb14d3d03b774490c4dbe4779b68306b7d1 /db
parenta0e41693e48be87feb0baa378c74e8309146c9c5 (diff)
added the user_role table
Diffstat (limited to 'db')
-rw-r--r--db/statusnet_pg.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/statusnet_pg.sql b/db/statusnet_pg.sql
index dbfd50098..672877ddf 100644
--- a/db/statusnet_pg.sql
+++ b/db/statusnet_pg.sql
@@ -559,3 +559,13 @@ create table config (
primary key (section, setting)
);
+
+create table user_role (
+
+ user_id integer not null /* comment 'user having the role'*/ references "user" (id),
+ role varchar(32) not null /* comment 'string representing the role'*/,
+ created timestamp /* not null comment 'date the role was granted'*/,
+
+ primary key (user_id, role)
+
+);