Manual:FindMissingActors.php/ja
Appearance
| MediaWiki バージョン: | ≧ 1.34 Gerrit change 625731 |
| MediaWiki ファイル: findMissingActors.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| クラス: | FindMissingActors |
詳細
findMissingActors.php is a maintenance script for finding and replacing invalid actor IDs, see 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.
オプション/引数
| オプション | 説明 | 必須かどうか |
|---|---|---|
| --field | The name of a database field to process | 必須 |
| --skip | A comma-separated list of actor IDs to skip | 省略可能 |
| --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. | 省略可能 |
使用法
php maintenance/run.php findMissingActors --field [ --skip| --overwrite-with ]
Terminal
$ php maintenance/run.php findMissingActors --field log_actor Finding invalid actor IDs in logging.log_actor... Found 0 invalid actor IDs. Done.
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。