Manual:$wgActorTableSchemaMigrationStage

This page is a translated version of the page Manual:$wgActorTableSchemaMigrationStage and the translation is 58% complete.
その他の設定: $wgActorTableSchemaMigrationStage
actor テーブル スキーマ移行の段階。
導入されたバージョン:1.37.0 (Gerrit change 684142; git #d3d8dc99)
除去されたバージョン:1.39.0 (Gerrit change 793845; git #24115a8f)
許容される値:(下記参照)
既定値:SCHEMA_COMPAT_TEMP (0x30) (1.37-1.38)
SCHEMA_COMPAT_NEW (0x30) (1.33-1.34)
SCHEMA_COMPAT_OLD (1.32)
MIGRATION_OLD (1.31)
MediaWiki の設定: $wgActorTableSchemaMigrationStage
このページを編集して要約を入力してください。
導入されたバージョン:1.31.0 (Gerrit change 380669; git #27c61fb1)
除去されたバージョン:1.34.0 (Gerrit change 525605; git #c29909e5)
許容される値:未指定
既定値:未指定

$wgActorTableSchemaMigrationStage は 操作者の移行 の段階を示しています。 Most wikis can set this to SCHEMA_COMPAT_NEW and run maintenance/migrateActors.php as soon as any necessary extensions are updated.

Note that reading the old and new schema at the same time is not supported in 1.32, but was (with significant query performance issues) in 1.31.

詳細

MediaWiki 1.37-1.38

MediaWiki バージョン:
1.37 – 1.38

The recommended values are:

  • SCHEMA_COMPAT_TEMP (0x30)
  • SCHEMA_COMPAT_WRITE_TEMP_AND_NEW | SCHEMA_COMPAT_READ_TEMP (0x130)
  • SCHEMA_COMPAT_WRITE_TEMP_AND_NEW | SCHEMA_COMPAT_READ_NEW (0x310)
  • SCHEMA_COMPAT_NEW (0x300)

MediaWiki 1.32-1.34

MediaWiki バージョン:
1.32 – 1.34

$wgActorTableSchemaMigrationStage can be set to one combination of the Schema change migration flags.

The allowed values for the configuration are one of the SCHEMA_COMPAT_* constants. The recommended values are:

  • SCHEMA_COMPAT_OLD (0x03, 既定値) - 古いスキーマのみを読み書きします。 新しいスキーマが存在する必要すらありません。 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 (0x13) - 新旧両方のスキーマに書き込みます。 旧スキーマを読み取ります。 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 (0x31) - 新旧両方のスキーマに書き込みます。 新スキーマを読み取ります。 This is used while the change is being tested, after running migrateActors.php, allowing easy roll-back to the old schema.
  • SCHEMA_COMPAT_NEW (0x30) - 新しいスキーマのみを読み書きします。 旧スキーマ (および機能フラグ) は除去できる場合があります。

MediaWiki 1.31

MediaWiki バージョン:
1.31

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

  • MIGRATION_OLD (0, 既定値) - 古いスキーマのみを読み書きします。 新しいスキーマが存在する必要すらありません。 This is used from when the patch is merged until the schema change is actually applied to the database.
  • MIGRATION_WRITE_BOTH (1) - 新旧両方のスキーマに書き込みます。 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.
  • MIGRATION_WRITE_NEW (2) - 新しいスキーマのみに書き込みます。 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.
  • MIGRATION_NEW (3) - 新しいスキーマのみを読み書きします。 旧スキーマ (および機能フラグ) は除去できる場合があります。