aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.sql
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-12-03 11:21:45 +0000
committerStruan Donald <struan@exo.org.uk>2012-12-03 17:49:11 +0000
commit59b4cd804cf9134f830109bfc51fba3856a21ea3 (patch)
tree1ba85066b4a9edea4cbb48b632d11ac6e69bb5b8 /db/schema.sql
parent6ba4943e11f6c9a05c907a948d1f3a67f518031d (diff)
add subcategory field to problem table
Diffstat (limited to 'db/schema.sql')
-rw-r--r--db/schema.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 6ebec5689..87e785de2 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -217,7 +217,10 @@ create table problem (
external_source_id text,
-- number of me toos
- interest_count integer default 0
+ interest_count integer default 0,
+
+ -- subcategory to enable filtering in reporting --
+ subcategory text
);
create index problem_state_latitude_longitude_idx on problem(state, latitude, longitude);
create index problem_user_id_idx on problem ( user_id );