From: lpsolit%gmail.com <> Date: Sun, 2 Dec 2007 21:22:16 +0000 (+0000) Subject: 2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat X-Git-Tag: bugzilla-3.1.3~449 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4478793ab93465c587e83c17a68b4d1da5c0a84;p=thirdparty%2Fbugzilla.git 2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat --- diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 485c771b14..9342959cf5 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -2924,6 +2924,10 @@ sub _fix_attachment_modification_date { WHERE attach_id = ?'); $sth->execute($_->[1], $_->[0]) foreach (@$attachments); } + # We add this here to be sure to have the index being added, due to the original + # patch omitting it. + $dbh->bz_add_index('attachments', 'attachments_modification_time_idx', + [qw(modification_time)]); } 1;