MediaWiki version:
1.21
MediaWiki file: populateFilearchiveSha1.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: PopulateFilearchiveSha1

Details

populateFilearchiveSha1.php file is a maintenance script to populate the fa_sha1 field from fa_storage_key.

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/populateFilearchiveSha1.php
Terminal
$ php maintenance/populateFilearchiveSha1.php

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.

See also

  • Filearchive table
  • Manual:PopulateImageSha1.php
  • Manual:EraseArchivedFile.php
  • Manual:DeleteArchivedFiles.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.