diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-23 12:45:18 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-23 12:45:18 +0100 |
commit | ee7770bb0130e2e0483af203c7410dad8269bdd7 (patch) | |
tree | 72d03e41f0749111390d37bef2cc726d9bdce5e7 /db | |
parent | 70850bf8a35a5a40b6d4a52b9d342468956797c9 (diff) |
initial crude add support option for a problem
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 5 | ||||
-rw-r--r-- | db/schema_0022-add_interest_count_to_problems.sql | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql index 690b7080f..571c71bcd 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -202,7 +202,10 @@ create table problem ( -- record details about messages from external sources, eg. message manager external_source text, - external_source_id text + external_source_id text, + + -- number of me toos + interest_count integer ); 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_0022-add_interest_count_to_problems.sql b/db/schema_0022-add_interest_count_to_problems.sql new file mode 100644 index 000000000..62092aa0a --- /dev/null +++ b/db/schema_0022-add_interest_count_to_problems.sql @@ -0,0 +1,6 @@ +begin; + +ALTER table problem + ADD COLUMN interest_count integer; + +commit; |