From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Wed, 11 Oct 2006 18:12:39 +0000
Subject: MediaWiki 1.7.1 wiederhergestellt

---
 maintenance/recount.sql | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 maintenance/recount.sql

(limited to 'maintenance/recount.sql')

diff --git a/maintenance/recount.sql b/maintenance/recount.sql
new file mode 100644
index 00000000..d9fec31f
--- /dev/null
+++ b/maintenance/recount.sql
@@ -0,0 +1,8 @@
+-- 
+-- Recalculate the article count
+-- 
+
+SELECT @foo:=COUNT(*) FROM /*$wgDBprefix*/cur
+  WHERE cur_namespace=0 AND cur_is_redirect=0 AND cur_text like '%[[%';
+UPDATE /*$wgDBprefix*/site_stats SET ss_good_articles=@foo, ss_total_pages=-1, ss_users=-1, ss_admins=-1;
+
-- 
cgit v1.2.2

