Manual:rebuildImages.php

From mediawiki.org
MediaWiki version:
1.4

Details[edit]

rebuildImages.php file is a maintenance script to update metadata records for images on a wiki.

Options[edit]

Option Description Required
--missing Only updates metadata records for images if no records currently exist in the database. Optional
--dry-run Only reports results and does not update the database with metadata records. Optional

Usage[edit]

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

See also[edit]