aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql3
-rw-r--r--db/schema_0009_add_gecode_column_to_problem.sql7
2 files changed, 9 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 99cf2832d..c0f225aa1 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -184,7 +184,8 @@ create table problem (
lastupdate timestamp not null default ms_current_timestamp(),
whensent timestamp,
send_questionnaire boolean not null default 't',
- flagged boolean not null default 'f'
+ flagged boolean not null default 'f',
+ geocode bytea
);
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_0009_add_gecode_column_to_problem.sql b/db/schema_0009_add_gecode_column_to_problem.sql
new file mode 100644
index 000000000..730212ead
--- /dev/null
+++ b/db/schema_0009_add_gecode_column_to_problem.sql
@@ -0,0 +1,7 @@
+
+begin;
+
+ALTER table problem
+ ADD column geocode BYTEA;
+
+commit;