aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql10
-rw-r--r--db/schema_0024-add_non_public_categories_and_problems.sql9
2 files changed, 17 insertions, 2 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 832104991..6e9396f45 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -81,7 +81,10 @@ create table contacts (
note text not null,
-- extra fields required for open311
- extra text
+ extra text,
+
+ -- for things like missed bin collections
+ non_public boolean default 'f'
);
create unique index contacts_area_id_category_idx on contacts(area_id, category);
@@ -198,7 +201,10 @@ create table problem (
send_fail_timestamp timestamp,
-- record send_method used, which can be used to infer usefulness of external_id
- send_method_used text
+ send_method_used text,
+
+ -- for things like missed bin collections
+ non_public BOOLEAN default 'f'
);
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_0024-add_non_public_categories_and_problems.sql b/db/schema_0024-add_non_public_categories_and_problems.sql
new file mode 100644
index 000000000..007368ac0
--- /dev/null
+++ b/db/schema_0024-add_non_public_categories_and_problems.sql
@@ -0,0 +1,9 @@
+BEGIN;
+
+ ALTER TABLE contacts
+ ADD COLUMN non_public BOOLEAN DEFAULT 'f';
+
+ ALTER TABLE problem
+ ADD COLUMN non_public BOOLEAN DEFAULT 'f';
+
+COMMIT;