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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5734, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3734 - maintenance/recount.sql not updated for 1.5.0
maintenance/recount.sql not updated for 1.5.0
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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,
/*$wgDBprefix*/text
  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.


Navigation
Links