Manual:PopulateFilearchiveSha1.php/zh

Category:MediaWiki deprecated or obsolete features/zh#PopulateFilearchiveSha1.php
MediaWiki版本:
1.21 1.43
Category:MediaWiki code/zh#PopulateFilearchiveSha1.php

详情

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
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.
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts/zh#PopulateFilearchiveSha1.php Category:Database maintenance scripts/zh
Category:Database maintenance scripts/zh Category:Maintenance scripts/zh Category:MediaWiki code/zh Category:MediaWiki deprecated or obsolete features/zh