Commit 9aec3881 authored by Clement Lucas's avatar Clement Lucas
Browse files

Ajout contrainte UNIQUE(position, ligne) dans Arret

parent 2373d38e
......@@ -42,7 +42,8 @@ CREATE TABLE Arret (
position INTEGER NOT NULL,
gare INTEGER REFERENCES Gare(id_gare) NOT NULL,
ligne INTEGER REFERENCES Ligne(id_ligne) NOT NULL,
PRIMARY KEY(id_arret)
PRIMARY KEY(id_arret),
UNIQUE (position, ligne)
);
---Calendrier (#jour : {lundi, mardi, mercredi, jeudi, vendredi, samedi, dimanche})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment