aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-16 14:30:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-16 14:30:30 +0100
commitd9f3bd47a94116871893f0417e7c836400bb04eb (patch)
tree1c140a6cb9ea3fd60dbf1532d2cb0bcfdaa703ad /db
parent1ba0a33c9fa19f2fa46f16678785d1c90ed33eb0 (diff)
parent194173589eed229567646cedfc0e32621d18f1e7 (diff)
Merge branch 'master' into bromley
Conflicts: bin/send-reports conf/crontab.ugly conf/general.yml-example db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/DB/Result/Comment.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/Result/User.pm templates/web/default/js/validation_strings.html templates/web/fixmystreet/auth/sign_out.html templates/web/fixmystreet/report/new/councils_text_all.html web/cobrands/fixmystreet/_base.scss
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql5
-rw-r--r--db/schema_0015-add_send_method_used_column_to_problem.sql6
2 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 13f992749..832104991 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -195,7 +195,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;