Manual:$wgChangeTagsSchemaMigrationStage

$wgChangeTagsSchemaMigrationStage indicates the change tag table schema migration stage. Most wikis can set this to  and run maintenance/migrate....php as soon as any necessary extensions are updated.

Details
$wgChangeTagsSchemaMigrationStage can be set to one of the Schema change migration flags. The allowed value range for the configuration is one of the  constants. The available constants and their planned use cases on Wikimedia Foundation wikis are as follows:
 * (0, default value): 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.
 * (1): 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.
 * (2): 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.
 * (3): 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  and to run maintenance/migrate....php in order to take advantage of the new schema.