Manual:PopulateImageSha1.php/ko
Appearance
이 기능은 버전 MediaWiki 1.43에서 완전히 제거되었습니다. |
| 미디어위키 버전: | 1.19 – 1.43 |
| 미디어위키 파일: populateImageSha1.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| 클래스: | PopulateImageSha1 |
상세
populateImageSha1.php file is a maintenance script to populate the img_sha1 field.
The img_sha1 field in the image table is used to store SHA-1 hash of the file contents in base 36 format.
This script runs by default when you run update.php.
옵션/인수
| Option | Description | Required? |
|---|---|---|
| --multiversiononly | Calculate only for files with several versions | Optional |
| --method | Use 'pipe' to pipe to mysql command line, default uses Database class | Optional |
| --file | Fix for a specific file, without File: namespace prefixed | Optional |
| --force | Recalculate sha1 for rows that already have a value | Optional |
사용법
php maintenance/run.php populateImageSha1 [ --multiversiononly| --method| --file| --force ]
Terminal
$ php maintenance/run.php populateImageSha1 --force Populating and recalculating img_sha1 field Done 0 of 3, 0.000% Done 3 files in 0.2 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.
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.