]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
slightly more paranoid database schema:.
authorcyeh%bluemartini.com <>
Thu, 27 Apr 2000 02:12:17 +0000 (02:12 +0000)
committercyeh%bluemartini.com <>
Thu, 27 Apr 2000 02:12:17 +0000 (02:12 +0000)
made column 'program' in table 'versions' be not null, and unique.
optimally you would want a unique index on 'value' and 'program' but
indexes are not supported on datatype 'tinytext' until mysql 3.23

checksetup.pl

index f0a7a3d77480020d522077bfcaf9e70e3533f03c..fc8f471f4bcb78965ca6499af209de01ac187c29 100755 (executable)
@@ -735,8 +735,9 @@ $table{fielddefs} =
 
 $table{versions} =
    'value tinytext,
-    program varchar(64)';
+    program varchar(64) not null,
 
+    unique(program)';
 
 $table{votes} =
    'who mediumint not null,