Jump to content

Handbuch:deleteOrphanedRevisions.php

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

Details

deleteOrphanedRevisions.php ist ein Wartungsskript zum Löschen von Revisionsständen, die auf eine nicht existierende Seite verweisen. It is useful to deal with any orphaned revisions left over after manual deletions of page records from the database. After removing revisions, the script also runs purgeOldText.php to purge unused text records.

Warnung Warnung: This script attempts to remove unused entries from the text table, which can cause potential data loss and is very slow for large wikis. In MediaWiki 1.44 or later, this step is skipped if $wgMiserMode is enabled.

Optionen

Option Beschreibung Notwendig
--report Gibt eine Anzahl von betroffenen Versionen aus, löscht sie jedoch nicht. Optional

Verwendung

php maintenance/run.php deleteOrphanedRevisions [ --report ]
Terminal
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.

See also