diff options
author | terry%mozilla.org <> | 2000-01-23 11:57:11 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-23 11:57:11 +0000 |
commit | 32dc75f2589659a250a538d70d9bc032125c2283 (patch) | |
tree | 343a59ea5eb90163d5c6f1ff0a96109a5e42ab9e | |
parent | 344d24af7389166971e3f18d8ef3dd6bee399186 (diff) | |
download | bugs-32dc75f2589659a250a538d70d9bc032125c2283.tar bugs-32dc75f2589659a250a538d70d9bc032125c2283.tar.gz bugs-32dc75f2589659a250a538d70d9bc032125c2283.tar.bz2 bugs-32dc75f2589659a250a538d70d9bc032125c2283.tar.xz bugs-32dc75f2589659a250a538d70d9bc032125c2283.zip |
Oops; previous change would cause delta_ts values to be lost in the bugs table.
-rwxr-xr-x | checksetup.pl | 7 |
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"); } |