diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-17 09:55:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-17 09:55:33 +0100 |
commit | 2ced346cafb7f6dcdf05d31c670c848d2658d225 (patch) | |
tree | 7f9076f2c9454df66518f7394becf9f4a35fb28a /db/schema.sql | |
parent | 8991f2967b4a82c0e6d2b8dcf836f1397d537533 (diff) | |
parent | a9cb80973eaacc79d75cd8edb12009fc88569117 (diff) |
Merge branch 'master' into barnet-newstyle
Diffstat (limited to 'db/schema.sql')
-rw-r--r-- | db/schema.sql | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/db/schema.sql b/db/schema.sql index 395d1c07b..e1205099d 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -189,7 +189,15 @@ create table problem ( send_questionnaire boolean not null default 't', extra text, -- extra fields required for open311 flagged boolean not null default 'f', - geocode bytea + geocode bytea, + + -- logging sending failures (used by webservices) + send_fail_count integer not null default 0, + send_fail_reason text, + send_fail_timestamp timestamp, + + -- record send_method used, which can be used to infer usefulness of external_id + send_method_used text ); create index problem_state_latitude_longitude_idx on problem(state, latitude, longitude); create index problem_user_id_idx on problem ( user_id ); @@ -419,5 +427,6 @@ create table open311conf ( area_id integer not null unique, endpoint text not null, jurisdiction text, - api_key text + api_key text, + send_method text ); |