Manual:populateFilearchiveSha1.php
この機能は、バージョン 1.43 で完全に除去されました。 |
MediaWiki バージョン: | 1.21 – 1.43 |
MediaWiki ファイル: populateFilearchiveSha1.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | PopulateFilearchiveSha1 |
詳細
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
$ php maintenance/run.php populateFilearchiveSha1 Populating fa_sha1 field from fa_storage_key Done 2 files in 0.7 seconds
スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。