Commit graph

3 commits

Author SHA1 Message Date
Reedy
cd3f1d58de Add some output messages to populatePPSortKey
Change-Id: I8a78fd1575c6a79cd78288c4f1e53a35689d1205
2017-07-26 00:47:58 +01:00
Roan Kattouw
a3d8d1a1b1 Follow-up 993ce4d: use pp_page for $lastPageValue, not pp_value
This caused the script to get in an infinite loop and never stop.

Change-Id: Ib28a033e82b76fd60005335b882a7f5d95ac6644
2017-07-25 16:20:37 -07:00
mdew192837
993ce4d411 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
2017-07-13 22:55:26 +00:00