Manual:CleanupUsersWithNoId.php

From mediawiki.org
This page is a translated version of the page Manual:CleanupUsersWithNoId.php and the translation is 50% complete.
Outdated translations are marked like this.
Versão MediaWiki:
1.31

Detalhes

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

Opção/Parâmetro Descrição Required?
--prefix Prefixo Interwiki a ser aplicado aos nomes de usuário. Este é um parâmetro obrigatório. Required
--table Limpe apenas esta mesa. O nome de uma única tabela pode ser fornecido aqui. Se não for fornecido, todas as tabelas afetadas serão limpas. São eles: revision, archive, logging, image, oldimage, filearchive, ipblocks and recentchanges. Optional
--assign Atribua edições a usuários locais existentes, se houver. Optional

Uso

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

Isso limpará apenas a tabela de revisão.


Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.


Release changes

Changes since MediaWiki 1.34.1

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

See also