Manual:PopulateIpChanges.php/ja
![]() | この機能は、バージョン 1.43 で完全に除去されました。 |
MediaWiki バージョン: | 1.30 – 1.43 |
MediaWiki ファイル: populateIpChanges.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | PopulateIpChanges |
詳細
populateIpChanges.php is a maintenance script that finds all rows in the revision
table where the user is an IP and copies relevant fields to the ip_changes table.
This backfilled data is then available when querying for IP ranges on Special:Contributions.
オプション
オプション | 説明 | 必須かどうか | 既定 |
---|---|---|---|
--rev-id | rev_id to start copying from. | 省略可能 | 0 |
--max-rev-id | rev_id to stop at | 省略可能 | Maximum rev_id of results |
--throttle | Wait this many milliseconds after copying each batch of revisions | 省略可能 | 0 |
--force | Run regardless of whether the database says it has been run already | 省略可能 |
使用法
php maintenance/run.php populateIpChanges [ --rev-id| --max-rev-id| --throttle| --force ]
Terminal
$ php maintenance/run.php populateIpChanges Copying IP revisions to ip_changes, from rev_id 0 to rev_id 249 ...checking 148 revisions for IP edits that need copying, between rev_ids 0 and 200 ...checking 29 revisions for IP edits that need copying, between rev_ids 201 and 249 Attempted to insert 152 IP revisions, 0 actually done.
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。