Manual:deleteOrphanedRevisions.php
Appearance
| MediaWiki バージョン: | ≧ 1.4 |
| MediaWiki ファイル: deleteOrphanedRevisions.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| クラス: | DeleteOrphanedRevisions |
詳細
deleteOrphanedRevisions.php は、存在しないページを参照している版を削除するメンテナンス スクリプトです。 データベースからページのレコードを手作業で削除したあとに残った、孤立している版を処理できるため有用です。 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. | 省略可能 |
使用法
php maintenance/run.php deleteOrphanedRevisions [ --report ]
Terminal
$ php maintenance/run.php deleteOrphanedRevisions Delete Orphaned Revisions Checking for orphaned revisions...found 7. Deleting... done.
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。