|Version de MediaWiki :||
|Fichier MediaWiki : deleteOrphanedRevisions.php|
|Code source :||master • 1.39.0 • 1.38.4 • 1.35.8|
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.
|--report||Prints out a count of affected revisions but doesn't delete them.||optionnel|
php maintenance/deleteOrphanedRevisions.php [ --report ]
$ php maintenance/deleteOrphanedRevisions.php Delete Orphaned Revisions Checking for orphaned revisions...found 7. Deleting... done.