]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
2nd part of bug 99215: Adding missing DB index when upgrading - Patch by me, r=mkanat
authorlpsolit%gmail.com <>
Sun, 2 Dec 2007 21:22:16 +0000 (21:22 +0000)
committerlpsolit%gmail.com <>
Sun, 2 Dec 2007 21:22:16 +0000 (21:22 +0000)
Bugzilla/Install/DB.pm

index 485c771b149a0155676bf9953e9047b25ebf07fc..9342959cf5216f5f40e1183790e359ae0acf7c2d 100644 (file)
@@ -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;