Manual:$wgMultiContentRevisionSchemaMigrationStage/da

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgMultiContentRevisionSchemaMigrationStage and the translation is 16% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎日本語
Database indstillinger: $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
Introduced in version:1.32.0 (Gerrit change 378724; git #I30a3a98)
Removed in version:still in use
Allowed values:Se forneden
Default value:SCHEMA_COMPAT_WRITE_BOTH
Other settings: Alphabetical | By function

$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/migrateXXX.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.

Detaljer

$wgCommentTableSchemaMigrationStage can be set to one combination 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:

  • SCHEMA_COMPAT_OLD (0x03, standardværdi): Only read and write the old schema. The new schema need not even exist. 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): Write both the old and new schema. 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 (0x31): Write only the new schema. 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 (0x30): Only read and write the new schema. The old schema (and the feature flag) may now be removed.

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

Se også