diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-05-03 17:04:07 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-05-03 17:04:07 +0100 |
commit | 0b6d246d552d8b386e53b3261b3fa755d8d04467 (patch) | |
tree | e723023907f808fecb6669b362077687a10b27d4 /db | |
parent | 0435127fa81581fa33448690cdd11437e1f28bd6 (diff) |
added can_display_external_id because external ids are not always useful for publishing, using send_method_used to determine that on a council-by-council basis
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 5 | ||||
-rw-r--r-- | db/schema_0015-add_send_method_used_column_to_problem.sql | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql index 5824b2d6d..e1205099d 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -194,7 +194,10 @@ create table problem ( -- logging sending failures (used by webservices) send_fail_count integer not null default 0, send_fail_reason text, - send_fail_timestamp timestamp + 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 ); diff --git a/db/schema_0015-add_send_method_used_column_to_problem.sql b/db/schema_0015-add_send_method_used_column_to_problem.sql new file mode 100644 index 000000000..0c6e0851d --- /dev/null +++ b/db/schema_0015-add_send_method_used_column_to_problem.sql @@ -0,0 +1,6 @@ +begin; + +ALTER table problem + ADD column send_method_used text; + +commit; |