diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-03-11 17:34:38 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-03-11 17:34:38 +0000 |
commit | 4df8d9979a4325bf2b47f401b4095654dd43d3a9 (patch) | |
tree | 64984c71916683830a1b1eef4deee8a04307cd80 /db | |
parent | eee9a69a1959f060fdbe7d346d594a76a3b39909 (diff) | |
parent | de47a7fad977156c67748deed6b3f154fc849035 (diff) |
Merge remote branch 'origin/sweden-rebase'
Conflicts:
bin/update-schema
locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po
perllib/FixMyStreet/DB/Result/Body.pm
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.sql | 1 | ||||
-rw-r--r-- | db/schema_0031-add_url_to_body.sql | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/schema.sql b/db/schema.sql index 125e680c6..6ddb7bae6 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -55,6 +55,7 @@ create table users ( create table body ( id serial primary key, name text not null, + external_url text, parent integer references body(id), endpoint text, jurisdiction text, diff --git a/db/schema_0031-add_url_to_body.sql b/db/schema_0031-add_url_to_body.sql new file mode 100644 index 000000000..7aaa78c64 --- /dev/null +++ b/db/schema_0031-add_url_to_body.sql @@ -0,0 +1,9 @@ +BEGIN; + +-- `external_url' includes an URL for reporting problems to the body directly. +-- It can be displayed in the new report form when no contacts are set; see +-- templates/web/fixamingata/report/new/councils_text_none.html for an example. + +ALTER TABLE body ADD external_url TEXT; + +COMMIT; |