diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-22 17:38:09 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-22 17:38:09 +0000 |
commit | 832ee711e4b741196146b0218678d34849aa82ff (patch) | |
tree | f16e0a706a39e565eb13661b29b6ff3e0b1dce7a /db | |
parent | 420c6becdb08d90da03f222a492893cd993772a1 (diff) |
add in retry count code
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 7 | ||||
-rw-r--r-- | db/schema_0014-add_send_fail_columns_to_problem.sql | 10 |
2 files changed, 16 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql index ab323ee1a..d9faa4aac 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -189,7 +189,12 @@ 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 ); create index problem_state_latitude_longitude_idx on problem(state, latitude, longitude); create index problem_user_id_idx on problem ( user_id ); diff --git a/db/schema_0014-add_send_fail_columns_to_problem.sql b/db/schema_0014-add_send_fail_columns_to_problem.sql new file mode 100644 index 000000000..369c4118d --- /dev/null +++ b/db/schema_0014-add_send_fail_columns_to_problem.sql @@ -0,0 +1,10 @@ +begin; + +ALTER table problem + ADD column send_fail_count integer not null default 0; +ALTER table problem + ADD column send_fail_reason text; +ALTER table problem + ADD column send_fail_timestamp timestamp; + +commit; |