Manual:$wgMultiContentRevisionSchemaMigrationStage/ja

From Linux Web Expert

<translate> Database settings</translate>: $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
<translate> Introduced in version:</translate>1.32.0 (Gerrit change 378724; git #I30a3a98)
<translate> Deprecated in version:</translate>1.35.0 (Gerrit change 558581; git #495323c0)
<translate> Removed in version:</translate>1.39.0 (Gerrit change 779544; git #0779a61e)
<translate> Allowed values:</translate>下記参照
<translate> Default value:</translate>SCHEMA_COMPAT_NEW (1.34-1.38)
SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW (1.32-1.33)

$wgMultiContentRevisionSchemaMigrationStage indicates the RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables). Most wikis can set this to SCHEMA_COMPAT_NEW and run maintenance/populateContentTables.php , the according maintenance script, as soon as any necessary extensions are updated.

Note that reading the old and new schema at the same time is not supported. Attempting to set both read bits in $wgMultiContentRevisionSchemaMigrationStage will result in an InvalidArgumentException.

詳細

$wgCommentTableSchemaMigrationStage can be set to one combination of the Schema change migration flags. The allowed value range for the configuration is one of the SCHEMA_COMPAT_* constants. The available constants and their planned use cases on Wikimedia Foundation wikis are as follows:

  • SCHEMA_COMPAT_OLD - 古いスキーマのみを読み書きします。 新しいスキーマが存在する必要すらありません。 This is used from when the patch is merged until the schema change is actually applied to the database.
  • SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD - 新旧両方のスキーマに書き込みます。 Read the new schema preferentially, falling back to the old. This is used while the change is being tested, allowing easy roll-back to the old schema.
  • SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW - 新しいスキーマのみに書き込みます。 Read the new schema preferentially, falling back to the old. This is used while running the maintenance script to migrate existing entries in the old schema to the new schema.
  • SCHEMA_COMPAT_NEW - 新しいスキーマのみを読み書きします。 旧スキーマ (および機能フラグ) は除去できる場合があります。

For non-Wikimedia Foundation wikis it is recommended to set this to SCHEMA_COMPAT_NEW and to run maintenance/populateContentTables.php in order to take advantage of the new schema.

関連項目