Podręcznik:CleanupUsersWithNoId.php
Appearance
Outdated translations are marked like this.
| Wersje MediaWiki: | 1.31 – 1.41 |
| Plik MediaWiki: cleanupUsersWithNoId.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| Klasy: | CleanupUsersWithNoId |
Szczegóły
cleanupUsersWithNoId.php is a maintenance script that cleans up tables that have valid usernames with no user ID. It should be run once on wikis that contain imported revisions or global blocks via the CentralAuth extension.
Options/Arguments
| Opcja/Parametr | Opis | Required? |
|---|---|---|
| --prefix | Interwiki prefix to apply to the usernames. This is a required parameter. | Wymagane |
| --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. | Optional |
| --assign | Assign edits to existing local users if they exist. | Optional |
Użycie
php maintenance/run.php cleanupUsersWithNoId --prefix [ --table| --assign ]
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.Terminal
$ php maintenance/run.php cleanupUsersWithNoId --prefix '*' --table revision
This will only clean up the revision table.
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.