Manual:$wgCommentTableSchemaMigrationStage/ja

Category:MediaWiki configuration settings/ja#CommentTableSchemaMigrationChangeCategory:MediaWiki configuration settings introduced in version 1.30.0/ja#CommentTableSchemaMigrationChangeCategory:MediaWiki configuration settings removed in version 1.33.0/ja#CommentTableSchemaMigrationChangeCategory:MediaWiki deprecated or obsolete features/ja#CommentTableSchemaMigrationChangeCategory:Database variables/ja#CommentTableSchemaMigrationChange
その他の設定: $wgCommentTableSchemaMigrationStage
comment テーブル スキーマ移行の段階。
導入されたバージョン:1.30.0 (Gerrit change 357892; git #Ic3a434c)
除去されたバージョン:1.33.0 (Gerrit change 482371; git #0abb9338)
許容される値:下記参照
既定値:MIGRATION_OLD

$wgCommentTableSchemaMigrationStage は comment テーブル スキーマ移行の段階を示します。 Most wikis can set this to MIGRATION_NEW and run maintenance/migrateComments.php as soon as any necessary extensions are updated.

詳細

$wgCommentTableSchemaMigrationStage 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, default value) - 古いスキーマのみを読み書きします。 新しいスキーマが存在する必要すらありません。 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) - 新しいスキーマのみを読み書きします。 旧スキーマ (および機能フラグ) は除去できる場合があります。

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

$wgForeignFileRepos

If you operate a wiki farm using $wgForeignFileRepos with ForeignDBRepo or ForeignDBViaLBRepo, it is important to keep in mind that client and repository wiki must be in nearby migration stages. (T181930 を参照)

外部リポジトリのウィキ
スキーマ変更なしOLDWRITE_BOTHWRITE_NEWNEWフィールドの削除
クライアント ウィキスキーマ変更なし はいはいはいいいえいいえいいえ
OLD はいはいはいいいえいいえいいえ
WRITE_BOTH いいえはいはいはいはいいいえ
WRITE_NEW いいえはいはいはいはいいいえ
NEW いいえいいえはいはいはいはい
フィールドの削除 いいえいいえはいはいはいはい
Category:Database variables/ja Category:MediaWiki configuration settings/ja Category:MediaWiki configuration settings introduced in version 1.30.0/ja Category:MediaWiki configuration settings removed in version 1.33.0/ja Category:MediaWiki deprecated or obsolete features/ja