summaryrefslogtreecommitdiffstats
path: root/sanitycheck.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-04-27 16:20:36 +0200
committerbbaetz%acm.org <>2003-04-27 16:20:36 +0200
commit8449ddc1397a699e8473ee657b18e1ed6928f4bb (patch)
tree5a37c734d6bc56f529d0dd81537de76a0c0fd87e /sanitycheck.cgi
parentf016a7980404372d9855215a5107968beb3c82f4 (diff)
downloadbugzilla-8449ddc1397a699e8473ee657b18e1ed6928f4bb.tar.gz
bugzilla-8449ddc1397a699e8473ee657b18e1ed6928f4bb.tar.xz
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-xsanitycheck.cgi4
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);