Add primary key column 'numero_lancer_dans_tour' to comprend table

This commit is contained in:
2024-04-18 16:15:15 +02:00
parent cd24e1a297
commit f9b416057c

View File

@@ -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
);