From: Brion Vibber Date: Fri, 5 Dec 2003 05:07:40 +0000 (+0000) Subject: Script to rebuild the article count X-Git-Tag: 1.1.0~19 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=6c23ab5b6f534e088a1be88582f57cdbfa00cbc3;p=lhc%2Fweb%2Fwiklou.git Script to rebuild the article count --- diff --git a/maintenance/recount.sql b/maintenance/recount.sql new file mode 100644 index 0000000000..93e1024b4f --- /dev/null +++ b/maintenance/recount.sql @@ -0,0 +1,8 @@ +-- +-- Recalculate the article count +-- + +SELECT @foo:=COUNT(*) FROM cur + WHERE cur_namespace=0 AND cur_is_redirect=0 AND cur_text like '%[[%'; +UPDATE site_stats SET ss_good_articles=@foo; +