手册:populateFilearchiveSha1.php
Appearance
此功能已在版本MediaWiki 1.43被完全移除。 |
| MediaWiki版本: | 1.21 – 1.43 |
| MediaWiki文件: populateFilearchiveSha1.php | |
|---|---|
| 位置: | maintenance/ |
| 源代码: | master • 1.46.2 • 1.45.6 • 1.43.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/run.php populateFilearchiveSha1
Terminal
$ php maintenance/run.php populateFilearchiveSha1 Populating fa_sha1 field from fa_storage_key Done 2 files in 0.7 seconds
Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.
在MediaWiki MediaWiki 1.39及更早版本中,您必须通过
php maintenance/脚本名称.php调用维护脚本,而不是php maintenance/run.php 脚本名称。