Руководство:PopulatePPSortKey.php
Эта функция была полностью удалена в версии 1.43. |
Версии MediaWiki: | 1.30 – 1.43 |
Файл MediaWiki: populatePPSortKey.php | |
---|---|
Расположение: | maintenance/ |
Исходный код: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Классы: | PopulatePPSortKey |
Details
populatePPSortKey.php is a maintenance script that populates the pp_sortkey
fields in the page_props table.
pp_sortkey can be used for efficient queries and sorted by the property value. It processes 100 items in every batch. This script runs by default when you run update.php .
Options
This script does not take any options.
Usage
php maintenance/run.php populatePPSortKey
Terminal
$ php maintenance/run.php populatePPSortKey Populating page_props.pp_sortkey... Populating page_props.pp_sortkey complete. Updated a total of 24 rows
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.