[MCR] populateContentTables maintenance script
authoraude <aude.wiki@gmail.com>
Fri, 12 Jan 2018 00:56:20 +0000 (19:56 -0500)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 25 Jun 2018 13:40:01 +0000 (15:40 +0200)
commitc22a2c9f752d56165490d5df786b46db76cc13ba
treed6c632ced020611d9128971d324e774b5bffee6f
parente7b704a6edb6fd80d1a4176b704b8699413f79a3
[MCR] populateContentTables maintenance script

This introduces a maintenance script for populating the tables
introduced by the MCR storage schema, namely:

  slots
  slot_roles
  content
  content_models

Per default, both the revision and archive tables are processed.

This script is part of the MCR schema migration: after instructing
RevisionStroe to write both the old and the new schema by setting
$wgMultiContentRevisionSchemaMigrationStage = MIGRATION_WRITE_BOTH,
this script can be used to back-fill the new schema for existing
revisions.

Doing this is a precondition to later setting
$wgMultiContentRevisionSchemaMigrationStage = MIGRATION_NEW to
complete the schema migration.

Bug: T182682
Change-Id: Iecc67c1b8c082be1a1039eeb52e76ad16b965226
autoload.php
includes/DefaultSettings.php
maintenance/populateContentTables.php [new file with mode: 0644]