}
+my $regenerateshadow = 0;
+
+
+
# 1999-05-12 Added a pref to control how much email you get. This needs a new
# column in the profiles table, so feed the following to mysql:
DropField('bugs', 'long_desc');
$dbh->do("UNLOCK TABLES");
- print "Now regenerating the shadow database for all bugs.\n";
- system("./processmail regenerate");
+ $regenerateshadow = 1;
}
# AddField/DropField/ChangeFieldType/RenameField code above. This would then
# be honored by everyone who updates his Bugzilla installation.
#
+#
+# Final checks...
+if ($regenerateshadow) {
+ print "Now regenerating the shadow database for all bugs.\n";
+ system("./processmail regenerate");
+}