Commit 32dc75f2 authored by terry%mozilla.org's avatar terry%mozilla.org

Oops; previous change would cause delta_ts values to be lost in the bugs table.

parent 344d24af
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment