Commit b4478793 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat

parent 641f68ee
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment