diff --git a/webtools/bugzilla/Bugzilla/Install/DB.pm b/webtools/bugzilla/Bugzilla/Install/DB.pm index 485c771b149..9342959cf52 100644 --- a/webtools/bugzilla/Bugzilla/Install/DB.pm +++ b/webtools/bugzilla/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;