Skip to content
Snippets Groups Projects
Commit 7118c3ae authored by TERRU Theo's avatar TERRU Theo
Browse files

ajout de clause DELETE ON CASCADE

parent fe6c0f2b
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ CREATE TABLE robotise.cocktail (
);
CREATE TABLE robotise.composition (
id_cocktail INT REFERENCES cocktail(id_cocktail),
id_ingredient INT REFERENCES ingredient(id_ingredient),
id_cocktail INT REFERENCES cocktail(id_cocktail) ON DELETE CASCADE,
id_ingredient INT REFERENCES ingredient(id_ingredient) ON DELETE CASCADE,
quantite INT
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment