summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2000-04-27 04:12:17 +0200
committercyeh%bluemartini.com <>2000-04-27 04:12:17 +0200
commitdc17dc6d5faf0ec2c15400194da515ec2e4d7d62 (patch)
treec3e3d293cc76ee712d34c0d5f9d6c3cbbe34f367 /checksetup.pl
parent6ee776b0f05c6acc23270fc87c180401e64c6069 (diff)
downloadbugzilla-dc17dc6d5faf0ec2c15400194da515ec2e4d7d62.tar.gz
bugzilla-dc17dc6d5faf0ec2c15400194da515ec2e4d7d62.tar.xz
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
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index f0a7a3d77..fc8f471f4 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,