Manual:PopulateImageSha1.php/fi

From mediawiki.org
This page is a translated version of the page Manual:PopulateImageSha1.php and the translation is 56% complete.
MediaWiki version:
1.19

Details

populateImageSha1.php file is a maintenance script to populate the img_sha1 field. 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/Arguments

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

Käyttö

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


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.

Katso myös