]> git.sesse.net Git - ccbs/blobdiff - sql/ccbs.sql
Update CC test data.
[ccbs] / sql / ccbs.sql
index 11901b4e201e056b338588645b0d746d9b59451b..b49a47e2781bc3f7717f7740630ab91581525e3f 100644 (file)
@@ -53,7 +53,7 @@ CREATE TABLE seasons (
        season SERIAL PRIMARY KEY,
        name VARCHAR NOT NULL,
 
-       UNIQUE ( season )
+       UNIQUE ( name )
 );
 
 CREATE TABLE tournaments (
@@ -105,7 +105,7 @@ CREATE TABLE roundparticipation (
        position INTEGER NOT NULL,
 
        UNIQUE (tournament, round, player),
-       UNIQUE (tournament, round, parallel, position)
+       UNIQUE (tournament, round, parallel, position),
        FOREIGN KEY (tournament, round, parallel) REFERENCES groups (tournament, round, parallel),
        PRIMARY KEY (tournament, round, parallel, player)
 );