summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-27 06:17:36 +0100
committerterry%mozilla.org <>2000-01-27 06:17:36 +0100
commit5bf7869f8b7d8c3bec9552081e13fdebb548b0cb (patch)
tree9ffef09fe619999e75465415fdecda7b38235e0e
parentd1bb0a3bba3da676a86088b786e726f5032929d9 (diff)
downloadbugzilla-5bf7869f8b7d8c3bec9552081e13fdebb548b0cb.tar.gz
bugzilla-5bf7869f8b7d8c3bec9552081e13fdebb548b0cb.tar.xz
If adding the new "lastdiffed" field, it works out better to
initialize it to "now", not to "delta_ts".
-rwxr-xr-xchecksetup.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 6f7f38559..f3937c0d1 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -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');