]> git.sesse.net Git - ccbs/commitdiff
Add uniqueness constraint to tournaments as well.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 18:16:27 +0000 (18:16 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 18:16:27 +0000 (18:16 +0000)
sql/ccbs.sql

index 0bbc0097b8f0212b58017c3bfd6adf42a7e4fdd4..b8660671f1a89548a8788da21a267f0bb8599f2e 100644 (file)
@@ -64,7 +64,9 @@ CREATE TABLE tournaments (
        location VARCHAR NOT NULL,
        "date" DATE NOT NULL,
        machine INTEGER NOT NULL REFERENCES machines,
-       scoringsystem INTEGER NOT NULL REFERENCES scoringsystems
+       scoringsystem INTEGER NOT NULL REFERENCES scoringsystems,
+
+       UNIQUE ( season, name )
 );
 
 CREATE TABLE rounds (