手册:$wgMultiContentRevisionSchemaMigrationStage
Appearance
此功能已在版本1.39.0被完全移除。 |
| 数据库设置: $wgMultiContentRevisionSchemaMigrationStage | |
|---|---|
| RevisionStore表模式迁移阶段(内容、插槽、content_models和插槽_roles表)。 |
|
| 引进版本: | 1.32.0(Gerrit change 378724; git #I30a3a98) |
| 弃用版本: | 1.35.0(Gerrit change 558581; git #495323c0) |
| 移除版本: | 1.39.0(Gerrit change 779544; git #0779a61e) |
| 允许的值: | 见下文 |
| 默认值: | SCHEMA_COMPAT_NEW (1.34-1.38)SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW (1.32-1.33) |
| 其他设置: 按首字母排序 | 按功能排序 | |
$wgMultiContentRevisionSchemaMigrationStage表示RevisionStore表模式迁移阶段(内容、插槽、content_models和插槽_roles表)。
大多数wiki可以将其设置为SCHEMA_COMPAT_NEW,并在更新任何必要的扩展后立即运行相应的维护脚本maintenance/populateContentTables.php。
请注意,不支持同时读取旧模式和新模式。 尝试在$wgMultiContentRevisionSchemaMigrationStage中设置两个读取位将导致InvalidArgumentException。
详细信息
$wgCommentTableSchemaMigrationStage可以设置为架构更改迁移标志的一个组合。
配置的允许值范围是SCHEMA_COMPAT_*常量之一。
维基媒体基金会维基上可用的常量及其计划用例如下:
SCHEMA_COMPAT_OLD- 只读写旧模式。 新模式甚至不需要存在。 从合并补丁时开始使用,直到模式更改实际应用于数据库。SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD- 编写新旧模式。 优先阅读新模式,回到旧模式。 这在测试更改时使用,允许轻松回滚到旧模式。SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW- 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- 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/populateContentTables.php in order to take advantage of the new schema.