Manual:PopulatePPSortKey.php/pl
Appearance
Ta funkcja została całkowicie usunięta z jądra MediaWiki w wersji MediaWiki 1.43. |
| Wersje MediaWiki: | 1.30 – 1.43 |
| Plik MediaWiki: populatePPSortKey.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | 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
W wersji MediaWiki 1.43.6 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.