This is a schema change. It's only a table creation, but the table must be created...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 18 Mar 2008 00:17:28 +0000 (00:17 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 18 Mar 2008 00:17:28 +0000 (00:17 +0000)
commit80a5874828c2ea32c8b5cee19dac23685924bc13
tree7e0800834fd2bda5d8813e3aa8323f0f1fad15f4
parentb7bf2dd85055ceed9bf6ea19dd6760f0811b6dc7
This is a schema change.  It's only a table creation, but the table must be created on Wikimedia servers before this revision goes live.  The maintenance script populateCategory.php should be run when convenient.  If it's not run, there's only one substantial case where display will be harmed: the page of a category with more than 200 net pages added since the patch goes live will give an erroneously low count.  In other cases category pages will just be better-worded, and it will recognize the count in the table is bogus.
* Adds Category and CategoryList classes to represent categories themselves.
* Adds a category table, giving each category a name, ID, and counts of all members, subcats only, and files.
* Adds a maintenance script to populate the category table efficiently.  This script is careful to wait for slaves and should be safe to run on a live database.  The maintenance script's includes file is called by update.php.
* Until the category table is populated, the patch handles weird category table rows gracefully.  It detects whether they're obviously impossible, and if so, it outputs appropriate messages.
12 files changed:
RELEASE-NOTES
includes/Article.php
includes/AutoLoader.php
includes/Category.php [new file with mode: 0644]
includes/CategoryPage.php
includes/LinksUpdate.php
languages/messages/MessagesEn.php
maintenance/archives/patch-category.sql [new file with mode: 0644]
maintenance/populateCategory.inc [new file with mode: 0644]
maintenance/populateCategory.php [new file with mode: 0644]
maintenance/tables.sql
maintenance/updaters.inc