Manual:rebuildImages.php
MediaWiki バージョン: | ≧ 1.4 |
MediaWiki ファイル: rebuildImages.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.38.2 • 1.37.4 • 1.35.7 |
クラス: | ImageBuilder |
詳細
rebuildImages.php file is a maintenance script to update metadata records for images that were manually uploaded to the wiki, for example via FTP.
オプション
オプション | 説明 | 必須かどうか |
---|---|---|
--missing | Only updates metadata records for images if no records currently exist in the database. | 省略可能 |
--dry-run | Only reports results and does not update the database with metadata records. | 省略可能 |
使用法
php maintenance/rebuildImages.php [ --missing| --dry-run ]
Terminal
$ php maintenance/rebuildImages.php Processing image... Finished image... 2 of 3 rows updated Processing oldimage... Finished oldimage... 0 of 0 rows updated