From 967e470fd58fb044fdd7c47315416c24030546b3 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 22 Nov 2012 16:25:19 +0000 Subject: Allow external_body optionally to be a lookup on /reports. --- db/schema.sql | 1 + 1 file changed, 1 insertion(+) (limited to 'db') 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, -- cgit v1.2.3