diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-11-22 16:25:19 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-11-22 16:25:19 +0000 |
commit | 967e470fd58fb044fdd7c47315416c24030546b3 (patch) | |
tree | c324adc0f42c8b73ddbd983bf6bb3132c4de9c5a /db/schema.sql | |
parent | 9ad3b72c6177216022d3ec4747ef0d7ffcd3dbb9 (diff) |
Allow external_body optionally to be a lookup on /reports.
Diffstat (limited to 'db/schema.sql')
-rw-r--r-- | db/schema.sql | 1 |
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, |