Manual:PopulateImageSha1.php/pl

Category:MediaWiki deprecated or obsolete features/pl#PopulateImageSha1.php
Wersje MediaWiki:
1.19 1.43
Category:MediaWiki code/pl#PopulateImageSha1.php

Szczegóły

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.

Options/Arguments

OptionDescriptionRequired?
--multiversiononlyCalculate only for files with several versionsOptional
--methodUse 'pipe' to pipe to mysql command line, default uses Database classOptional
--fileFix for a specific file, without File: namespace prefixedOptional
--forceRecalculate sha1 for rows that already have a valueOptional

Usage

php maintenance/run.php populateImageSha1 [ --multiversiononly| --method| --file| --force ]
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.

Zobacz też

Category:Maintenance scripts/pl Category:Database maintenance scripts/pl Category:File maintenance scripts/pl
Category:Database maintenance scripts/pl Category:File maintenance scripts/pl Category:Maintenance scripts/pl Category:MediaWiki code/pl Category:MediaWiki deprecated or obsolete features/pl