Skip to content
Snippets Groups Projects
Commit 9857922a authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Removed 'ON DELETE CASCADE' instruction on 'node' and 'deleted_node' tables.

parent bf4f5550
No related branches found
No related tags found
No related merge requests found
Pipeline #1103 passed
......@@ -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)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment