From 76b9557dbc1f34b1d033e0fc44e86a02f811cbbe Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 15 Mar 2016 13:17:04 +0000 Subject: [PATCH] Task #8570: resource_allocation.specification ON DELETE CASCADE --- .../ResourceAllocationDatabase/sql/create_database.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAS/ResourceAssignment/ResourceAllocationDatabase/sql/create_database.sql b/SAS/ResourceAssignment/ResourceAllocationDatabase/sql/create_database.sql index 0709e2dab78..e19485b1fc1 100644 --- a/SAS/ResourceAssignment/ResourceAllocationDatabase/sql/create_database.sql +++ b/SAS/ResourceAssignment/ResourceAllocationDatabase/sql/create_database.sql @@ -132,7 +132,7 @@ CREATE TABLE resource_allocation.task ( otdb_id integer, status_id integer NOT NULL REFERENCES resource_allocation.task_status DEFERRABLE INITIALLY IMMEDIATE, type_id integer NOT NULL REFERENCES resource_allocation.task_type DEFERRABLE INITIALLY IMMEDIATE, - specification_id integer NOT NULL REFERENCES resource_allocation.specification DEFERRABLE INITIALLY IMMEDIATE, + specification_id integer NOT NULL REFERENCES resource_allocation.specification ON DELETE CASCADE DEFERRABLE INITIALLY IMMEDIATE, PRIMARY KEY (id) ) WITH (OIDS=FALSE); ALTER TABLE resource_allocation.task -- GitLab