Commit 4efda1a4 authored by terry%mozilla.org's avatar terry%mozilla.org

Don't regenerate the shadow database until we're sure that our DB is

up to snuff with what processmail expects.
parent 6e5f5251
......@@ -1067,6 +1067,10 @@ sub DropField ($$)
}
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:
......@@ -1308,8 +1312,7 @@ if (GetFieldDef('bugs', 'long_desc')) {
DropField('bugs', 'long_desc');
$dbh->do("UNLOCK TABLES");
print "Now regenerating the shadow database for all bugs.\n";
system("./processmail regenerate");
$regenerateshadow = 1;
}
......@@ -1430,3 +1433,9 @@ AddField('namedqueries', 'linkinfooter', 'tinyint not null');
# 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");
}
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