summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-23 12:57:11 +0100
committerterry%mozilla.org <>2000-01-23 12:57:11 +0100
commit32dc75f2589659a250a538d70d9bc032125c2283 (patch)
tree343a59ea5eb90163d5c6f1ff0a96109a5e42ab9e /checksetup.pl
parent344d24af7389166971e3f18d8ef3dd6bee399186 (diff)
downloadbugzilla-32dc75f2589659a250a538d70d9bc032125c2283.tar.gz
bugzilla-32dc75f2589659a250a538d70d9bc032125c2283.tar.xz
Oops; previous change would cause delta_ts values to be lost in the bugs table.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 6c04263f1..567c88be9 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");
}