From: cyeh%bluemartini.com <> Date: Thu, 27 Apr 2000 02:12:17 +0000 (+0000) Subject: slightly more paranoid database schema:. X-Git-Tag: bugzilla-2.12~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc17dc6d5faf0ec2c15400194da515ec2e4d7d62;p=thirdparty%2Fbugzilla.git slightly more paranoid database schema:. 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 --- diff --git a/checksetup.pl b/checksetup.pl index f0a7a3d774..fc8f471f4b 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -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,