MediaWiki version:
1.31
MediaWiki file: populateArchiveRevId.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: PopulateArchiveRevId

Details

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.

Options

This script does not take any options.

Usage

php maintenance/populateArchiveRevId.php
Terminal
$ php maintenance/populateArchiveRevId.php

Populating ar_rev_id...
Completed ar_rev_id population, 7 rows updated.

See also

  • Manual:deduplicateArchiveRevId.php
  • Manual:PopulateRevisionSha1.php
  • Manual:CleanupRevActorPage.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.