]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
If adding the new "lastdiffed" field, it works out better to
authorterry%mozilla.org <>
Thu, 27 Jan 2000 05:17:36 +0000 (05:17 +0000)
committerterry%mozilla.org <>
Thu, 27 Jan 2000 05:17:36 +0000 (05:17 +0000)
initialize it to "now", not to "delta_ts".

checksetup.pl

index 6f7f38559a920f8767750e683c698d0230c52b19..f3937c0d16b7c3f8ba96cec8839e721f12895d3e 100755 (executable)
@@ -1348,7 +1348,7 @@ if (GetFieldDef('bugs_activity', 'field')) {
 
 if (!GetFieldDef('bugs', 'lastdiffed')) {
     AddField('bugs', 'lastdiffed', 'datetime not null');
-    $dbh->do('UPDATE bugs SET lastdiffed = delta_ts, delta_ts = delta_ts');
+    $dbh->do('UPDATE bugs SET lastdiffed = now(), delta_ts = delta_ts');
 }
 
 AddField('profiles', 'newemailtech', 'tinyint not null');