From: Brion Vibber Date: Fri, 20 Nov 2009 04:55:38 +0000 (-0800) Subject: Followup to commit 4e00ce01a9841ac055c058a4f0e221cc56eca06e: rename user_role to... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b750c5271da3f4c6f044d0288f64bb91e348394;p=quix0rs-gnu-social.git Followup to commit 4e00ce01a9841ac055c058a4f0e221cc56eca06e: rename user_role to profile_role in update & postgres schemas --- diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index d9b57fb841..7aaf3a7a00 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -29,13 +29,13 @@ create table config ( ); -create table user_role ( +create table profile_role ( - user_id integer not null /* comment 'user having the role'*/ references "user" (id), + profile_id integer not null /* comment 'account having the role'*/ references profile (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) + primary key (profile_id, role) ); diff --git a/db/statusnet_pg.sql b/db/statusnet_pg.sql index 8dbaf85981..927925753e 100644 --- a/db/statusnet_pg.sql +++ b/db/statusnet_pg.sql @@ -560,13 +560,13 @@ create table config ( ); -create table user_role ( +create table profile_role ( - user_id integer not null /* comment 'user having the role'*/ references "user" (id), + profile_id integer not null /* comment 'account having the role'*/ references profile (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) + primary key (profile_id, role) );