diff options
author | terry%mozilla.org <> | 2000-01-22 12:24:39 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-22 12:24:39 +0000 |
commit | 6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55 (patch) | |
tree | e2b74fd808d5610777a93047ef4a09e07070ac46 /sanitycheck.cgi | |
parent | 77613d1fc5ca11bca00d1e530d3d1847c9ba24d3 (diff) | |
download | bugs-6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55.tar bugs-6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55.tar.gz bugs-6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55.tar.bz2 bugs-6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55.tar.xz bugs-6dcda41d4c40a5617757a3b0ec9bbaeebfde6b55.zip |
Added a new table fielddefs that records information about the
different fields we keep an activity log on. The bugs_activity table
now has a pointer into that table instead of recording the name directly.
Set up a new, highly experimental email-notification scheme. To turn
it on, the maintainer has to turn on the "New email tech" param, and
then individual users have to turn on the "New email tech" preference.
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-x | sanitycheck.cgi | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 08fbbfb8f..b67dad69e 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -336,18 +336,30 @@ while (@row = FetchSQLData()) { Status("Checking activity table"); -SendSQL("select bug_id,who from bugs_activity"); +SendSQL("select bug_id,who,fieldid from bugs_activity"); + +my @fieldids; while (@row = FetchSQLData()) { - my ($id, $who) = (@row); + my ($id, $who, $f) = (@row); if (!defined $bugid{$id}) { Alert("Bad bugid " . BugLink($id)); } if (!defined $profid{$who}) { Alert("Bad who $who in " . BugLink($id)); } + $fieldids[$f] = 1; } +for (my $f = 0 ; $f < @fieldids ; $f++) { + if ($fieldids[$f]) { + SendSQL("SELECT name FROM fielddefs WHERE fieldid = $f"); + my $name = FetchOneColumn(); + if (!$name) { + Alert("Bad fieldid $f in bugs_activity"); + } + } +} Status("Checking dependency table"); |