Manual:PopulateArchiveRevId.php/ja

MediaWiki バージョン:
1.31
Category:MediaWiki code/ja#PopulateArchiveRevId.php

詳細

populateArchiveRevId.php is a maintenance script that populates the archive.ar_rev_id field in rows where it is missing.

When revisions are deleted, their unique rev_id is stored in the archive table so it can be retained after undeletion. This is necessary to retain permalinks to given revisions after accidental delete cycles or messy operations like history merges. Old entries from MediaWiki 1.4 will be NULL, and a new rev_id will be created on undeletion for those revisions.

This script runs by default when you run update.php. It processes 100 items in every batch.

オプション

このスクリプトにはオプションはありません。

使用法

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

関連項目

Category:Maintenance scripts/ja Category:Content maintenance scripts/ja
Category:Content maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja