Handbuch:deleteOrphanedRevisions.php
MediaWiki Version: | ≥ 1.4 |
MediaWiki file: deleteOrphanedRevisions.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | DeleteOrphanedRevisions |
Details
deleteOrphanedRevisions.php is a maintenance script to delete revisions which refer to a non-existing page. 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.
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
$ php maintenance/run.php deleteOrphanedRevisions Delete Orphaned Revisions Checking for orphaned revisions...found 7. Deleting... done.
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
.