Add primary key column 'numero_lancer_dans_tour' to comprend table
This commit is contained in:
@@ -38,10 +38,11 @@ CREATE TABLE
|
||||
|
||||
CREATE TABLE
|
||||
comprend (
|
||||
PRIMARY KEY (idpartie, num_tour, idlancer),
|
||||
PRIMARY KEY (idpartie, num_tour, idlancer, numero_lancer_dans_tour),
|
||||
idpartie INTEGER NOT NULL,
|
||||
num_tour INTEGER NOT NULL,
|
||||
idlancer INTEGER NOT NULL
|
||||
idlancer INTEGER NOT NULL,
|
||||
numero_lancer_dans_tour INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE
|
||||
@@ -54,7 +55,7 @@ CREATE TABLE
|
||||
CREATE TABLE
|
||||
de_lance (
|
||||
PRIMARY KEY (idlancer, rang_couleur_valeur),
|
||||
idlancer INTEGER NOT NULL,
|
||||
idlancer INTEGER NOT NULL AUTO_INCREMENT,
|
||||
rang_couleur_valeur VARCHAR(42) NOT NULL
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user