From 9857922aff10083d2df3d8ab34b927abb4cbb727 Mon Sep 17 00:00:00 2001 From: Cristiano Urban <cristiano.urban@inaf.it> Date: Mon, 1 Mar 2021 12:03:20 +0100 Subject: [PATCH] Removed 'ON DELETE CASCADE' instruction on 'node' and 'deleted_node' tables. Signed-off-by: Cristiano Urban <cristiano.urban@inaf.it> --- 00-init.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/00-init.sql b/00-init.sql index 6f4ae77..22528be 100644 --- a/00-init.sql +++ b/00-init.sql @@ -90,7 +90,7 @@ CREATE TABLE node ( -- storage_id VARCHAR, protocols TEXT[] default NULL, PRIMARY KEY (node_id), - FOREIGN KEY (location_id) REFERENCES location (location_id) ON DELETE CASCADE + FOREIGN KEY (location_id) REFERENCES location (location_id) ); @@ -132,7 +132,7 @@ CREATE TABLE deleted_node ( -- add a deleted_on timestamp to keep track deleted_on TIMESTAMP default CURRENT_TIMESTAMP, PRIMARY KEY (node_id), - FOREIGN KEY (location_id) REFERENCES location (location_id) ON DELETE CASCADE + FOREIGN KEY (location_id) REFERENCES location (location_id) ); -- GitLab