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

This commit is contained in:
lpsolit%gmail.com 2007-12-02 15:22:16 +00:00
Родитель 9f714b79a8
Коммит c596724345
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;