MediaWiki version:
1.32
MediaWiki file: populateContentTables.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: PopulateContentTables

Details

populateContentTables.php is a maintenance script that migrates revision data to account for database schema changes done as part of the Multi-Content Revisions project (creation of the content, content_models, slots, slot_roles tables, deprecation of the concept of content formats).

It was introduced in MediaWiki 1.32.0 (phab:T182682).

This script is run automatically by update.php and processes 500 items in a batch.

Options/Arguments

Option Description Required?
--tablerevision or archive table, or all to populate bothOptional
--reuse-contentReuse content table rows when the address and model are the same.
This will increase the script's time and memory usage, perhaps significantly.
Optional
--start-revisionQuery group to check specificallyOptional
--start-archiveUse an external cluster by nameOptional

Usage

php maintenance/populateContentTables.php [ --table| --reuse-content| --start-revision| --start-archive ]
Terminal
$ php maintenance/populateContentTables.php

Populating revision...
Done populating revision table. Processed 23 rows in 5.3234234427 seconds
Populating archive...
Done populating archive table. Processed 4 rows in 1.2453454356 seconds

Done. Processed 27 rows in 7.1324234451 seconds

Release changes

Changes since MediaWiki 1.32.4

  • Compute sha1 and length if needed in maintenance/populateContentTables.php.

See also

  • Multi-Content Revisions
  • Content models table
  • Slots table
  • Slot roles table
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.