diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-20 16:40:53 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-26 12:49:23 +0000 |
commit | eb2aba46eabc8d90656b760cf4900f56119de9ca (patch) | |
tree | afdf23b1a49424aa0c46019f8354f46b778dcf5c /db/schema.sql | |
parent | d04d807989eaedb1bd46d08bf80e1b42ed7800ae (diff) |
Store all moderation change history in database.
Currently keeping the same front end functionality of only reverting to
the original.
Diffstat (limited to 'db/schema.sql')
-rw-r--r-- | db/schema.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql index a448e05fa..d5d63f478 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -441,7 +441,7 @@ create table moderation_original_data ( -- Problem details problem_id int references problem(id) ON DELETE CASCADE not null, - comment_id int references comment(id) ON DELETE CASCADE unique, + comment_id int references comment(id) ON DELETE CASCADE, title text null, detail text null, -- or text for comment @@ -456,6 +456,7 @@ create table moderation_original_data ( latitude double precision, longitude double precision ); +create index moderation_original_data_problem_id_comment_id_idx on moderation_original_data(problem_id, comment_id); create table user_body_permissions ( id serial not null primary key, |