Manual:CleanupUsersWithNoId.php/fa

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:CleanupUsersWithNoId.php and the translation is 27% complete.

Other languages:
English • ‎polski • ‎فارسی • ‎日本語 • ‎한국어

جزئیات

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.

استفاده

php cleanupUsersWithNoId.php --prefix=prefix [--table=table] [--assign]
Option/Parameter توضیحات
--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.

Example

php cleanupUsersWithNoId.php --table=revision

This will only clean up the revision table.