Commit 86f51c5e authored by Clement Lucas's avatar Clement Lucas
Browse files

Ajout contrainte UNIQUE(nom_ville, nom_gare)

parent 28b132b1
......@@ -11,7 +11,8 @@ CREATE TABLE Gare (
nom_ville VARCHAR NOT NULL REFERENCES Ville(nom_ville),
adresse VARCHAR NOT NULL,
zone_horaire INTEGER NOT NULL,
PRIMARY KEY(id_gare)
PRIMARY KEY(id_gare),
UNIQUE (nom_ville, nom_gare)
);
---Ligne (#id_ligne: integer, nom_ligne: varchar, origine=>Gare, terminus=>Gare) ;
......
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