зеркало из https://github.com/mozilla/pjs.git
2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat
This commit is contained in:
Родитель
9f714b79a8
Коммит
c596724345
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче