diff options
author | bbaetz%acm.org <> | 2003-04-27 14:20:36 +0000 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-04-27 14:20:36 +0000 |
commit | 8449ddc1397a699e8473ee657b18e1ed6928f4bb (patch) | |
tree | 5a37c734d6bc56f529d0dd81537de76a0c0fd87e /sanitycheck.cgi | |
parent | Bug 203540 - RenameField doesn't get NULL/NOT NULL correct (diff) | |
download | bugzilla-8449ddc1397a699e8473ee657b18e1ed6928f4bb.tar.gz bugzilla-8449ddc1397a699e8473ee657b18e1ed6928f4bb.tar.bz2 bugzilla-8449ddc1397a699e8473ee657b18e1ed6928f4bb.zip |
Bug 180086 - Rename 'count' column in votes tables
patch by bugzilla@chimpychompy.org (GavinS)
r=bbaetz,justdave
a=justdave
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-x | sanitycheck.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 16a123967..98734e5b0 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -82,7 +82,7 @@ if (exists $::FORM{'rebuildvotecache'}) { Status("OK, now rebuilding vote cache."); SendSQL("lock tables bugs write, votes read"); SendSQL("update bugs set votes = 0, delta_ts=delta_ts"); - SendSQL("select bug_id, sum(count) from votes group by bug_id"); + SendSQL("select bug_id, sum(vote_count) from votes group by bug_id"); my %votes; while (@row = FetchSQLData()) { my ($id, $v) = (@row); @@ -433,7 +433,7 @@ while (@row = FetchSQLData()) { } Status("Checking cached vote counts"); -SendSQL("select bug_id, sum(count) from votes group by bug_id"); +SendSQL("select bug_id, sum(vote_count) from votes group by bug_id"); while (@row = FetchSQLData()) { my ($id, $v) = (@row); |