diff options
author | Struan Donald <struan@exo.org.uk> | 2012-12-03 11:21:45 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-12-03 17:49:11 +0000 |
commit | 59b4cd804cf9134f830109bfc51fba3856a21ea3 (patch) | |
tree | 1ba85066b4a9edea4cbb48b632d11ac6e69bb5b8 /db | |
parent | 6ba4943e11f6c9a05c907a948d1f3a67f518031d (diff) |
add subcategory field to problem table
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 5 | ||||
-rw-r--r-- | db/schema_0027-add_sub_category_to_problem.sql | 6 |
2 files changed, 10 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 ); diff --git a/db/schema_0027-add_sub_category_to_problem.sql b/db/schema_0027-add_sub_category_to_problem.sql new file mode 100644 index 000000000..6787bd371 --- /dev/null +++ b/db/schema_0027-add_sub_category_to_problem.sql @@ -0,0 +1,6 @@ +begin; + +ALTER TABLE problem + ADD COLUMN subcategory TEXT; + +commit; |