From c44317e640cfe9dd766f09598873d8b96db2414a Mon Sep 17 00:00:00 2001 From: Jon Kristensen Date: Sat, 1 Mar 2014 23:10:38 +0100 Subject: Add `external_url' column to `body' table. --- db/schema.sql | 1 + db/schema_0031-add_url_to_body.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 db/schema_0031-add_url_to_body.sql (limited to 'db') diff --git a/db/schema.sql b/db/schema.sql index 5e4bc4a3e..f221825f2 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; -- cgit v1.2.3