aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-12-02 21:22:16 +0000
committerlpsolit%gmail.com <>2007-12-02 21:22:16 +0000
commitb4478793ab93465c587e83c17a68b4d1da5c0a84 (patch)
tree96ff46144bf53d46569f9b0c6a532748875456e9 /Bugzilla
parent641f68eed63a982261e37431b6265d01914583a6 (diff)
downloadbugs-b4478793ab93465c587e83c17a68b4d1da5c0a84.tar
bugs-b4478793ab93465c587e83c17a68b4d1da5c0a84.tar.gz
bugs-b4478793ab93465c587e83c17a68b4d1da5c0a84.tar.bz2
bugs-b4478793ab93465c587e83c17a68b4d1da5c0a84.tar.xz
bugs-b4478793ab93465c587e83c17a68b4d1da5c0a84.zip
2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/DB.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 485c771b1..9342959cf 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;