From f87033cffc55e56b6f0b108e20418a15e45b4224 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 21 Feb 2008 15:04:19 -0800 Subject: [PATCH] Add a log table. --- fas/fas2.sql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fas/fas2.sql b/fas/fas2.sql index 60ebcb0..6bd1b31 100644 --- a/fas/fas2.sql +++ b/fas/fas2.sql @@ -163,6 +163,14 @@ create table bugzilla_queue ( check (action ~ '[ar]') ); +-- Log changes to the account system +create table log ( + id serial primary key, + author INTEGER references people(id) not null, + changetime TIMESTAMP default NOW(), + description TEXT +); + -- -- turbogears session tables -- @@ -240,7 +248,7 @@ create trigger email_bugzilla_sync before update for each row execute procedure bugzilla_sync_email(); -- For Fas to connect to the database -GRANT ALL ON TABLE people, groups, person_roles, person_emails, group_roles, group_emails, bugzilla_queue, configs, cert_seq, person_seq, group_seq, visit, visit_identity TO GROUP fedora; +GRANT ALL ON TABLE people, groups, person_roles, person_emails, group_roles, group_emails, bugzilla_queue, configs, person_seq, group_seq, visit, visit_identity TO GROUP fedora; -- For other services to connect to the necessary session tables GRANT ALL ON TABLE visit, visit_identity TO GROUP apache;