Manual:populateImageSha1.php

This page is a translated version of the page Manual:PopulateImageSha1.php and the translation is 89% complete.
MediaWiki バージョン:
1.19

詳細

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 .

オプション/引数

オプション 説明 必須かどうか
--multiversiononly Calculate only for files with several versions 省略可能
--method Use 'pipe' to pipe to mysql command line, default uses Database class 省略可能
--file Fix for a specific file, without File: namespace prefixed 省略可能
--force Recalculate sha1 for rows that already have a value 省略可能

使用法

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


スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。

関連項目