Further categorylinks schema changes
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 3 Sep 2010 20:52:08 +0000 (20:52 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 3 Sep 2010 20:52:08 +0000 (20:52 +0000)
commitdcd5d260d40547e111c9d678d7d146182d80dd1a
tree9fa116f9278093eb160b751960cf9614dabd08c6
parentfd7c3f4d38bfc15c826922f550e901c7108dfec5
Further categorylinks schema changes

Per review by Tim, I made two changes:

1) Fix cl_sortkey to be varbinary(255).

2) Expand cl_collation to varbinary(32), and change $wgCollationVersion
to $wgCategoryCollation, to account for the variety of collations we
might have.  tinyint is too small.  I could have gone with int, but
that's annoyingly inscrutable in practice, as we all know from namespace
fields.

To make the upgrade easier for non-trunk users, I updated the old patch
file to incorporate the new changes, using the updatelog table so that
people upgrading from 1.16 won't have to do two alters on categorylinks.
I didn't test the upgrade-from-1.16 code path yet, so if anyone tests
that and it seems not to break, commenting to that effect would be
appreciated.

Also removed wfDeprecated() from archive().  Do *not* add this to
functions that are still actively used in core.  If you think this
function is so terrible that it really mustn't be used, remove callers
yourself, don't pester every single developer with messages in the hope
that someone else will do it for you.
includes/DefaultSettings.php
includes/LinksUpdate.php
includes/installer/MysqlUpdater.php
maintenance/archives/patch-categorylinks-better-collation.sql
maintenance/archives/patch-categorylinks-better-collation2.sql [new file with mode: 0644]
maintenance/tables.sql
maintenance/updateCollation.php
maintenance/updaters.inc