Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base de données
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
procom2022-robotise
Base de données
Commits
7118c3ae
Commit
7118c3ae
authored
2 years ago
by
TERRU Theo
Browse files
Options
Downloads
Patches
Plain Diff
ajout de clause DELETE ON CASCADE
parent
fe6c0f2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bdd.sql
+2
-2
2 additions, 2 deletions
bdd.sql
with
2 additions
and
2 deletions
bdd.sql
+
2
−
2
View file @
7118c3ae
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment