Manual:CleanupUsersWithNoId.php/ja

MediaWiki バージョン:
1.31
Category:MediaWiki code/ja#CleanupUsersWithNoId.php

詳細

cleanupUsersWithNoId.php is a maintenance script that cleans up tables that have valid usernames with no user ID. It should once be run in wikis that contain imported revisions or global blocks via the CentralAuth extension.

オプション/引数

オプション 説明 必須かどうか
--prefixInterwiki prefix to apply to the usernames. This is a required parameter.必須
--tableOnly clean up this table. The name of one single table can be provided here. If not provided, all affected tables will be cleaned up. These are: revision, archive, logging, image, oldimage, filearchive, ipblocks and recentchanges.省略可能
--assignAssign edits to existing local users if they exist.省略可能

使用法

php maintenance/run.php cleanupUsersWithNoId --prefix [ --table| --assign ]
MediaWiki バージョン 1.39.13 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。
Terminal

This will only clean up the revision table.

スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。

Release changes

Changes since MediaWiki 1.34.1

  • (T238043) cleanupUsersWithNoId.php: Handle missing fields.

関連項目

Category:Maintenance scripts/ja Category:User maintenance scripts/ja
Category:Maintenance scripts/ja Category:MediaWiki code/ja Category:User maintenance scripts/ja