From 211eaabadfe3abef456a35786dc0486224449aa6 Mon Sep 17 00:00:00 2001 From: Chris Mytton Date: Tue, 10 Sep 2013 13:19:36 +0100 Subject: [Zurich] Add deleted column to body table This is so Zurich can mark certain external bodies (which may already have problems assigned to them) as deleted, without *actually* deleting them. --- db/schema_0029-add_deleted_flag_to_body.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/schema_0029-add_deleted_flag_to_body.sql (limited to 'db') diff --git a/db/schema_0029-add_deleted_flag_to_body.sql b/db/schema_0029-add_deleted_flag_to_body.sql new file mode 100644 index 000000000..3a8be7890 --- /dev/null +++ b/db/schema_0029-add_deleted_flag_to_body.sql @@ -0,0 +1,6 @@ +BEGIN; + +ALTER table body + ADD column deleted BOOL NOT NULL DEFAULT 'f'; + +COMMIT; -- cgit v1.2.3 From e462f67cfa42e2e39cb39dbbab93ce05280c31e1 Mon Sep 17 00:00:00 2001 From: Chris Mytton Date: Tue, 10 Sep 2013 16:43:43 +0100 Subject: [Zurich] Update schema.sql with body.deleted column --- db/schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/schema.sql b/db/schema.sql index 5e4bc4a3e..5c54e2d88 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -64,7 +64,8 @@ create table body ( comment_user_id int references users(id), suppress_alerts boolean not null default 'f', can_be_devolved boolean not null default 'f', - send_extended_statuses boolean not null default 'f' + send_extended_statuses boolean not null default 'f', + deleted boolean not null default 'f' ); create table body_areas ( -- cgit v1.2.3