Jump to content

Manual:populateFilearchiveSha1.php

From mediawiki.org
This page is a translated version of the page Manual:PopulateFilearchiveSha1.php and the translation is 50% complete.
MediaWiki バージョン:
1.21 – 1.43

詳細

populateFilearchiveSha1.php ファイルは、fa_storage_key から fa_sha1 フィールドを計算するメンテナンス スクリプトです。

The fa_sha1 field in the filearchive database table is used to store sha1 hash of file content, encoded in base 36. This field stores pure sha1 whereas fa_storage_key stores sha1 with extension of file.

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

Options/Arguments

This script does not take any options or arguments.

使用法

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

関連項目