From: terry%mozilla.org <> Date: Sun, 23 Jan 2000 11:57:11 +0000 (+0000) Subject: Oops; previous change would cause delta_ts values to be lost in the bugs table. X-Git-Tag: bugzilla-2.12~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32dc75f2589659a250a538d70d9bc032125c2283;p=thirdparty%2Fbugzilla.git Oops; previous change would cause delta_ts values to be lost in the bugs table. --- diff --git a/checksetup.pl b/checksetup.pl index 6c04263f13..567c88be97 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -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"); }