aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
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;