]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Oops; previous change would cause delta_ts values to be lost in the bugs table.
authorterry%mozilla.org <>
Sun, 23 Jan 2000 11:57:11 +0000 (11:57 +0000)
committerterry%mozilla.org <>
Sun, 23 Jan 2000 11:57:11 +0000 (11:57 +0000)
checksetup.pl

index 6c04263f134a18c5fa33a7ea19e0acd9694b993c..567c88be9773993924e2d355d115e7b89cb2f62b 100755 (executable)
@@ -1376,7 +1376,12 @@ if (GetIndexDef('profiles', 'login_name')->[1]) {
                        ["longdescs", "who"]) {
             my ($table, $field) = (@$i);
             print "   Updating $table.$field ...\n";
-            $dbh->do("UPDATE $table SET $field = $u1 WHERE $field = $u2");
+            my $extra = "";
+            if ($table eq "bugs") {
+                $extra = ", delta_ts = delta_ts";
+            }
+            $dbh->do("UPDATE $table SET $field = $u1 $extra " .
+                     "WHERE $field = $u2");
         }
         $dbh->do("DELETE FROM profiles WHERE userid = $u2");
     }