Handbuch:AttachLatest.php

From mediawiki.org
This page is a translated version of the page Manual:AttachLatest.php and the translation is 63% complete.
Outdated translations are marked like this.
MediaWiki Version:
1.6

Details

Die attachLatest.php-Datei ist ein Wartungsskript, welches falsche Werte im page_latest-Feld in der Datenbank behebt. Das Programm ist für Seiten mit Spalten page_latest aus der Tabelle Seite auf 0 gesetzt suchen. 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.

attachLatest.php does not check, if the revision, which is set as page_latest actually exists. If the page_latest field points to a non-existing revision, attachLatest.php, unless used with the --regenerate-all parameter, will not fix this.

Optionen/Argumente

Option Beschreibung Notwendig?
--fix Um tatsächlich ändern Sie die Datenbank. Optional
--regenerate-all Um dieses Feld für alle Datensätze in der Tabelle Seite zu regenerieren. Optional

Wird angezeigt, was wird behoben werden, aber keine Änderungen an der Datenbank durchgeführt werden.

Verwendung

php maintenance/attachLatest.php [ --fix| --regenerate-all ]

Dry run to check pages

Terminal

Fixing the pages

Terminal

Siehe auch