diff options
author | Louise Crow <louise@mysociety.org> | 2010-02-08 11:12:46 +0000 |
---|---|---|
committer | Louise Crow <louise@mysociety.org> | 2010-02-08 11:12:46 +0000 |
commit | d3651be691d54bcade7ec2a5b8d626baa18b9eb5 (patch) | |
tree | bafb4a8b8b39f47a412bbb662324d9513e519971 /db | |
parent | 4ecad0916cd6e973f4b6a1d59b3e3a479411da55 (diff) |
Adding simple logging of problem and update edits made in the admin interface.
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/schema.sql b/db/schema.sql index 4da21a212..18b3282ed 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -324,3 +324,20 @@ create table textmystreet ( postcode text not null, mobile text not null ); + +-- Record basic information about edits made through the admin interface + +create table admin_log ( + id serial not null primary key, + admin_user text not null, + object_type text not null check ( + object_type = 'problem' + or object_type = 'update' + ), + object_id integer not null, + action text not null check ( + action = 'edit' + or action = 'state_change' + or action = 'resend'), + whenedited timestamp not null default ms_current_timestamp() +); |