This page is a translated version of the page Manual:PopulateImageSha1.php and the translation is 67% complete.
Version de MediaWiki :


Le fichier populateImageSha1.php est un script de maintenance servant à initialiser le champ img_sha1. The img_sha1 field in the image table is used to store SHA-1 hash of the file contents in base 36 format.

This script runs by default when you run update.php .

Options et arguments

Option Description Required?
--multiversiononly Calculate only for files with several versions optionnel
--method Use 'pipe' to pipe to mysql command line, default uses Database class optionnel
--file Fix for a specific file, without File: namespace prefixed optionnel
--force Recalculate sha1 for rows that already have a value optionnel


php maintenance/populateImageSha1.php [ --multiversiononly| --method| --file| --force ]

Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.

Voir aussi