aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authormatthew <matthew>2007-05-15 13:43:20 +0000
committermatthew <matthew>2007-05-15 13:43:20 +0000
commitfbe6dff68a4c5ed8f1c00646a01bf1cbc8fab95b (patch)
treeae28a137b37b6cfdbcb88c554fd23132da0bf4a4 /db
parent25851744776d0d78cc3347d5769a4999fcebe0f9 (diff)
If someone leaves an update on a problem, count that as "refreshing" the
problem. Rename db field to lastupdate to make this all clearer. Tidy up some code.
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 4b4334000..0b8169b79 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -4,7 +4,7 @@
-- Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
-- Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
--
--- $Id: schema.sql,v 1.30 2007-05-09 16:54:48 matthew Exp $
+-- $Id: schema.sql,v 1.31 2007-05-15 13:43:20 matthew Exp $
--
-- secret
@@ -145,7 +145,7 @@ create table problem (
or state = 'fixed'
or state = 'hidden'
),
- laststatechange timestamp not null default ms_current_timestamp(),
+ lastupdate timestamp not null default ms_current_timestamp(),
whensent timestamp,
send_questionnaire boolean not null default 't'
);
@@ -226,7 +226,7 @@ create table comment (
or state = 'hidden'
),
mark_fixed boolean not null,
- mark_open boolean not null
+ mark_open boolean not null default 'f'
-- other fields? one to indicate whether this was written by the council
-- and should be highlighted in the display?
);