Manual:populateFilearchiveSha1.php
Appearance
この機能は、バージョン MediaWiki 1.43 で完全に除去されました。 |
| MediaWiki バージョン: | 1.21 – 1.43 |
| MediaWiki ファイル: populateFilearchiveSha1.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| クラス: | 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.
オプション/引数
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 バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。