diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/statusnet.sql (renamed from db/laconica.sql) | 10 | ||||
-rw-r--r-- | db/statusnet_pg.sql (renamed from db/laconica_pg.sql) | 0 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/laconica.sql b/db/statusnet.sql index fe93f26ac..221d60ce3 100644 --- a/db/laconica.sql +++ b/db/statusnet.sql @@ -558,3 +558,13 @@ create table config ( constraint primary key (section, setting) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; + +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 datetime not null comment 'date the role was granted', + + constraint primary key (user_id, role) + +) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; diff --git a/db/laconica_pg.sql b/db/statusnet_pg.sql index 5b4d0485a..5b4d0485a 100644 --- a/db/laconica_pg.sql +++ b/db/statusnet_pg.sql |