Manual:PopulateImageSha1.php/ja

Category:MediaWiki deprecated or obsolete features/ja#PopulateImageSha1.php
MediaWiki バージョン:
1.19 1.43
Category:MediaWiki code/ja#PopulateImageSha1.php

詳細

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.

オプション/引数

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

使用法

php maintenance/run.php populateImageSha1 [ --multiversiononly| --method| --file| --force ]
Terminal
スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目

Category:Maintenance scripts/ja Category:Database maintenance scripts/ja Category:File maintenance scripts/ja
Category:Database maintenance scripts/ja Category:File maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja Category:MediaWiki deprecated or obsolete features/ja