Manual:CleanupUsersWithNoId.php/fr

Version de MediaWiki :
1.31
Category:MediaWiki code/fr#CleanupUsersWithNoId.php

Détails

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.

Options/Arguments

Option Description Required?
--prefixInterwiki prefix to apply to the usernames. This is a required parameter.obligatoire
--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.optionnel
--assignAssign edits to existing local users if they exist.optionnel

Usage

php maintenance/run.php cleanupUsersWithNoId --prefix [ --table| --assign ]
Dans la version MediaWiki 1.39.13 et antérieures, vous devez appeler les scripts de maintenance en utilisant php maintenance/scriptName.php au lieu de php maintenance/run.php scriptName.
Terminal

This will only clean up the revision table.

Lorsqu'il s'exécute, le script crée une note dans la base de données et ne sera plus réexécuté. Pour permettre une nouvelle exécution, relancez la commande avec l'option --force.

Release changes

Changes since MediaWiki 1.34.1

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

See also

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