Manuel:populateRevisionLength.php
Cette fonctionnalité a été supprimée entièrement dans la version 1.43. |
Versions de MediaWiki : | 1.17 – 1.43 |
Fichier MediaWiki : populateRevisionLength.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.43.0 • 1.42.5 • 1.39.11 |
Classes : | PopulateRevisionLength |
Détails
Le fichier populateRevisionLength.php est un script de maintenance pour remplir les champs rev_len
et ar_len
pour les vieilles révisions crées avant MW 1.10.
The rev_len and ar_len fields contain the length of the article in bytes after a new revision or deletion.
This script runs by default when you run update.php . It processes 200 items in a batch.
Options/arguments
This script does not take any options or arguments.
Usage
php maintenance/run.php populateRevisionLength
Terminal
$ php maintenance/run.php populateRevisionLength Populating rev_len column ...doing rev_id from 1 to 200 ...doing rev_id from 201 to 400 ...doing rev_id from 401 to 600 ...doing rev_id from 601 to 800 Populating ar_len column ...doing ar_id from 1 to 200 rev_len and ar_len population complete [0 revision rows, 0 archive rows].
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.