MediaWiki version:
1.31
MediaWiki file: migrateActors.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: MigrateActors

Details

migrateActors.php is a maintenance script that {{ll|actor migration|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.

Options/Arguments

Option Description Required?
--tables List of tables to process, comma-separatedOptional

Usage

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

Creating actor entries for all registered users
... 1 - 9
Completed actor creation, added 0 new actor(s)
No need to migrate revision.rev_user, field does not exist
No need to migrate archive.ar_user, field does not exist
No need to migrate ipblocks.ipb_by, field does not exist
No need to migrate image.img_user, field does not exist
No need to migrate oldimage.oi_user, field does not exist
No need to migrate filearchive.fa_user, field does not exist
No need to migrate recentchanges.rc_user, field does not exist
No need to migrate logging.log_user, field does not exist
Beginning migration of log_search
Completed migration, inserted 0 row(s) with 0 new actor(s), 0 error(s)

Release changes

Changes since MediaWiki 1.32.0-rc.2

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

See also

  • $wgActorTableSchemaMigrationStage
  • Manual:Actor table
  • Manual:Revision actor temp table
  • Manual:CleanupUsersWithNoId.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.