diff options
author | lpsolit%gmail.com <> | 2005-05-04 01:23:37 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-05-04 01:23:37 +0000 |
commit | 1da5153872ffbe188daa476791f1a18384167b34 (patch) | |
tree | 9a489706f4b78f40ce6574512350fdb2353ef4ea /checksetup.pl | |
parent | 0041d80aab9c3285d5245e39f3a75d1cdaa4edc4 (diff) | |
download | bugs-1da5153872ffbe188daa476791f1a18384167b34.tar bugs-1da5153872ffbe188daa476791f1a18384167b34.tar.gz bugs-1da5153872ffbe188daa476791f1a18384167b34.tar.bz2 bugs-1da5153872ffbe188daa476791f1a18384167b34.tar.xz bugs-1da5153872ffbe188daa476791f1a18384167b34.zip |
Bug 7233: Editversions.cgi has a potential race resulting in duplicate versions - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl index 565fa1e70..ef3d80735 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3937,6 +3937,13 @@ $dbh->bz_add_index('flags', 'flags_type_id_idx', [qw(type_id)]); # For a short time, the flags_type_id_idx was misnamed in upgraded installs. $dbh->bz_drop_index('flags', 'type_id'); +# 2005-04-28 - LpSolit@gmail.com - Bug 7233: add an index to versions +$dbh->bz_alter_column('versions', 'value', + {TYPE => 'varchar(64)', NOTNULL => 1}); +$dbh->bz_add_index('versions', 'versions_product_id_idx', + {TYPE => 'UNIQUE', FIELDS => [qw(product_id value)]}); + + # If you had to change the --TABLE-- definition in any way, then add your # differential change code *** A B O V E *** this comment. |