Manual:fixMergeHistoryCorruption.php

From Linux Web Expert

Revision as of 06:38, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.37
<translate> MediaWiki version:</translate>

詳細

fixMergeHistoryCorruption.php is a maintenance script to clears rows of pages corrupted by MergeHistory, those pages exist but have no visible revision.

These pages are completely inaccessible via the UI due to revision/title mismatch exceptions in RevisionStore and elsewhere.

These are rows in page table that have page_latest entry with corresponding rev_id but no associated rev_page entry in revision table. Such rows create ghost pages because their page_latest is actually living on different pages (which possess the associated rev_page on revision table now).

オプション/引数

オプション 説明 必須かどうか
--ns Namespace to restrict the query <translate> Optional</translate>
--dry-run Run in dry-mode which does not delete anything <translate> Optional</translate>
--delete Actually delete the found rows <translate> Optional</translate>

使用法

php maintenance/fixMergeHistoryCorruption.php [ --ns| --dry-run| --delete ]
Terminal

関連項目