diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-26 17:34:50 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-26 17:34:50 +0100 |
commit | 23f700258100bfc42c8b07c251f8582399824409 (patch) | |
tree | 600fb44e616080335fea1ab6491d4c5232172241 /db | |
parent | 592149f0659620ddc0fd6ae4ccdea10b9598739b (diff) |
associated a comment user with a council config
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 3 | ||||
-rw-r--r-- | db/schema_0018-add_comment_user_to_open311conf.sql | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql index 74b2eade6..169939315 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -432,5 +432,6 @@ create table open311conf ( jurisdiction text, api_key text, send_method text, - send_comments boolean not null default 'f' + send_comments boolean not null default 'f', + comment_user_id int references users(id) ); diff --git a/db/schema_0018-add_comment_user_to_open311conf.sql b/db/schema_0018-add_comment_user_to_open311conf.sql new file mode 100644 index 000000000..93851e2a3 --- /dev/null +++ b/db/schema_0018-add_comment_user_to_open311conf.sql @@ -0,0 +1,6 @@ +begin; + +ALTER TABLE open311conf + ADD COLUMN comment_user_id INT REFERENCES users(id); + +commit; |