Manual:migrateActors.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.31
<translate> MediaWiki version:</translate>

詳細

migrateActors.php is a maintenance script that migrates actors from pre-1.31 columns to the actor table.

$wgActorTableSchemaMigrationStage needs to be set to MIGRATION_WRITE_NEW or MIGRATION_NEW for the script to do the migration.

The actors are finally stored in the column actor_name in the actor table.

To improve performance during the run-time of this script, for the table revision, a temporary table named revision_actor_temp is being used during the migration.

This table will be merged with the table revision again in the future.

In order for this script to work properly, you first should run cleanupUsersWithNoId.php .

オプション/引数

オプション 説明 必須かどうか
--tables List of tables to process, comma-separated <translate> Optional</translate>

使用法

php maintenance/migrateActors.php [ --tables ]
Terminal

Release changes

Changes since MediaWiki 1.32.0-rc.2

  • (T188327) Fix slow queries in migrateActors.php.

関連項目