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

Added 'ON DELETE CASCADE' to foreign key instruction.

parent fec92440
No related branches found
No related tags found
No related merge requests found
Pipeline #1086 passed
......@@ -49,7 +49,7 @@ CREATE TABLE location (
storage_src_id SMALLINT default NULL,
storage_dest_id SMALLINT default NULL,
PRIMARY KEY (location_id),
FOREIGN KEY (storage_src_id) REFERENCES storage (storage_id),
FOREIGN KEY (storage_src_id) REFERENCES storage (storage_id) ON DELETE CASCADE,
FOREIGN KEY (storage_dest_id) REFERENCES storage (storage_id)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment