Podręcznik:CleanupUsersWithNoId.php

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 55% complete.

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

Szczegóły

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.

Użycie

php cleanupUsersWithNoId.php --prefix=prefix [--table=table] [--assign]
Opcja/Parametr Opis
--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.

Przykład

php cleanupUsersWithNoId.php --table=revision

This will only clean up the revision table.