Manual:cleanupUsersWithNoId.php

This page is a translated version of the page Manual:CleanupUsersWithNoId.php and the translation is 50% complete.
MediaWiki バージョン:
1.31

詳細

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.

オプション/引数

オプション 説明 必須かどうか
--prefix Interwiki prefix to apply to the usernames. This is a required parameter. 必須
--table Only 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. 省略可能
--assign Assign edits to existing local users if they exist. 省略可能

使用法

php maintenance/cleanupUsersWithNoId.php --prefix [ --table| --assign ]
Terminal

This will only clean up the revision table.


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


Release changes

Changes since MediaWiki 1.34.1

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

関連項目