Last modified: 2010-05-15 15:38:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3734 - maintenance/recount.sql not updated for 1.5.0
maintenance/recount.sql not updated for 1.5.0
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-10-18 13:26 UTC by Dossy Shiobara
Modified: 2010-05-15 15:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Dossy Shiobara 2005-10-18 13:26:29 UTC
maintenance/recount.sql hasn't been updated for MW 1.5.0's DB schema.  Here's a
proposed update to the script which works on my installation:

SELECT @foo:=COUNT(*) FROM /*$wgDBprefix*/page, /*$wgDBprefix*/revision,
  WHERE page_namespace=0 AND page_is_redirect=0 AND rev_page = page_id AND
rev_text_id = old_id AND old_text like '%[[%';
UPDATE /*$wgDBprefix*/site_stats SET ss_good_articles=@foo, ss_total_pages=-1,
ss_users=-1, ss_admins=-1;
Comment 1 Brion Vibber 2005-10-18 18:18:51 UTC
recount.sql is replaced by initStats.php. Should make sure that works cleanly.
Comment 2 Brion Vibber 2005-10-22 21:19:06 UTC
Removed 'need-review' and 'patch' keywords as there is no 
patch on this bug.

Have checked initStats.php into REL1_5 and removed 
recount.sql; resolving FIXED.

Note You need to log in before you can comment on or make changes to this bug.