Add a maintenance script for populating pp_sortkey
authormdew192837 <justin.d128@gmail.com>
Wed, 24 May 2017 21:00:08 +0000 (16:00 -0500)
committerMtDu <justin.d128@gmail.com>
Thu, 13 Jul 2017 22:55:26 +0000 (22:55 +0000)
commit993ce4d4111c3ac4be92106f7c8d93e9e0d1427f
treea141559dbe74e5abe5b5e50e08a51ba44f44c48d
parent865a85a9cdeb77360e61a7342c26b59a06ee47ea
Add a maintenance script for populating pp_sortkey

The addition of a pp_sortkey field in T60032 necessitates an update
to old entries in the page_props table that don't have a pp_sortkey.
The script uses the pp_value as the sort key if it's numeric.
The script extends LoggedUpdateMaintenance so it only runs once.
Added the script to MysqlUpdater so that it automatically runs.

Bug: T66949
Change-Id: Id482dc73ec1963010324e51fe9273a72dd31a7f7
autoload.php
includes/installer/DatabaseUpdater.php
maintenance/populatePPSortKey.php [new file with mode: 0644]