Manual:FindMissingActors.php/pl
Appearance
Wersja MediaWiki: | ≥ 1.34 Gerrit change 625731 |
Plik MediaWiki: findMissingActors.php | |
---|---|
Lokalizacja: | maintenance/ |
Kod źródłowy: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klasy: | FindMissingActors |
Details
findMissingActors.php is a maintenance script for finding and replacing invalid actor IDs, see zadanie T261325.
This allows bad actor IDs to be overwritten with some default.
This solves the problem of rows in tables like ipblocks
, logging
, or revision
not being found due to a failing join against the actor
table.
Options/Arguments
Option | Description | Required? |
---|---|---|
--field | The name of a database field to process | Wymagane |
--skip | A comma-separated list of actor IDs to skip | Optional |
--overwrite-with | Replace missing actors with this user. Typically, this would be "Unknown user", but it could be any reserved system user (per $wgReservedUsernames ) or locally registered user. If not given, invalid actors will only be listed, not fixed. You will be prompted for confirmation before data is written. | Optional |
Usage
php maintenance/findMissingActors.php --field [ --skip| --overwrite-with ]
Terminal
$ php maintenance/findMissingActors.php --field log_actor Finding invalid actor IDs in logging.log_actor... Found 0 invalid actor IDs. Done.