]> git.sesse.net Git - ccbs/blobdiff - sql/ccbs.sql
Add missing comma to roundparticipation definition.
[ccbs] / sql / ccbs.sql
index b8660671f1a89548a8788da21a267f0bb8599f2e..e452d387d0134da2b1c0d8908f4c012530af4ad4 100644 (file)
@@ -102,8 +102,10 @@ CREATE TABLE roundparticipation (
        round INTEGER NOT NULL,
        parallel INTEGER NOT NULL,
        player INTEGER NOT NULL REFERENCES players,
+       position INTEGER NOT NULL,
 
        UNIQUE (tournament, round, player),
+       UNIQUE (tournament, round, parallel, position),
        FOREIGN KEY (tournament, round, parallel) REFERENCES groups (tournament, round, parallel),
        PRIMARY KEY (tournament, round, parallel, player)
 );