|MediaWiki file: attachLatest.php|
|Source code:||master • 1.32.0 • 1.31.1|
attachLatest.php file is a maintenance script that is quick hackjob to fix damaged imports on wikisource page records have
page_latest column wrong.
The program is looking for pages with column
page_latest from the table page set to 0.
For these pages, it then attaches the latest revision of that page according to the revision timestamp.
The script finally prints out the number of pages, which have been or would be changed.
page_latestactually exists. If the
page_latestfield points to a non-existing revision, attachLatest.php, unless used with the
--regenerate-allparameter, will not fix this.
|--fix||To actually change the database.|
|--regenerate-all||To regenerate this field for all records in table page.|
|no parameters||Will display what will be fixed, but not changes will be done to the database.|
- attachLatest.php source code on MediaWiki master.