Manual:populateFilearchiveSha1.php
MediaWiki バージョン: | ≧ 1.21 |
MediaWiki ファイル: populateFilearchiveSha1.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.40.0 • 1.39.4 • 1.35.11 |
クラス: | 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.
Usage
php maintenance/populateFilearchiveSha1.php
Terminal
$ php maintenance/populateFilearchiveSha1.php Populating fa_sha1 field from fa_storage_key Done 2 files in 0.7 seconds
スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。