Manual:deleteOrphanedRevisions.php

This page is a translated version of the page Manual:DeleteOrphanedRevisions.php and the translation is 83% complete.
MediaWiki バージョン:
1.4

詳細

deleteOrphanedRevisions.php は、存在しないページを参照している版を削除するメンテナンス スクリプトです。 データベースからページのレコードを手作業で削除したあとに残った、孤立している版を処理できるため有用です。 After removing revisions, the script also runs purgeOldText.php to purge unused text records.

  警告: このスクリプトは text テーブルから未使用のエントリーを削除しようとします。これは潜在的なデータ損失を引き起こす可能性があり、大規模なウィキでは非常に低速になります。

オプション

オプション 説明 必須かどうか
--report Prints out a count of affected revisions but doesn't delete them. 省略可能

使用法

php maintenance/run.php deleteOrphanedRevisions [ --report ]
Terminal
MediaWiki バージョン 1.39.13 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目