Manual:populateContentTables.php

From Linux Web Expert

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

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?
--table revision or archive table, or all to populate both <translate> Optional</translate>
--reuse-content Reuse content table rows when the address and model are the same.
This will increase the script's time and memory usage, perhaps significantly.
<translate> Optional</translate>
--start-revision Query group to check specifically <translate> Optional</translate>
--start-archive Use an external cluster by name <translate> Optional</translate>

Usage

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

Release changes

Changes since MediaWiki 1.32.4

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

See also