aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-11-22 16:25:19 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-11-22 16:25:19 +0000
commit967e470fd58fb044fdd7c47315416c24030546b3 (patch)
treec324adc0f42c8b73ddbd983bf6bb3132c4de9c5a /db
parent9ad3b72c6177216022d3ec4747ef0d7ffcd3dbb9 (diff)
Allow external_body optionally to be a lookup on /reports.
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 7cb2f3257..6ebec5689 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -221,6 +221,7 @@ create table problem (
);
create index problem_state_latitude_longitude_idx on problem(state, latitude, longitude);
create index problem_user_id_idx on problem ( user_id );
+create index problem_external_body_idx on problem(lower(external_body));
create table questionnaire (
id serial not null primary key,