From 1da5153872ffbe188daa476791f1a18384167b34 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 4 May 2005 01:23:37 +0000 Subject: =?UTF-8?q?Bug=207233:=20Editversions.cgi=20has=20a=20potential=20?= =?UTF-8?q?race=20resulting=20in=20duplicate=20versions=20-=20Patch=20by?= =?UTF-8?q?=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmkan?= =?UTF-8?q?at=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/DB/Schema.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 1b905ac01..8682f1721 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -455,9 +455,13 @@ use constant ABSTRACT_SCHEMA => { versions => { FIELDS => [ - value => {TYPE => 'TINYTEXT'}, + value => {TYPE => 'varchar(64)', NOTNULL => 1}, product_id => {TYPE => 'INT2', NOTNULL => 1}, ], + INDEXES => [ + versions_product_id_idx => {FIELDS => [qw(product_id value)], + TYPE => 'UNIQUE'}, + ], }, milestones => { -- cgit v1.2.1