Add separate fa_sha1 field to filearchive table
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 14 Oct 2012 18:58:25 +0000 (20:58 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 14 Oct 2012 18:58:25 +0000 (20:58 +0200)
commitfb2c1c645bdc2f74477e4a4dd9c7b08c5afe4744
treed351fae3ab6e81123cb4e6a39ae0d9c3a486fdef
parent21b3fde565c3644906af0932205723dd94eed597
Add separate fa_sha1 field to filearchive table

This allows sha1 searches with the api in miser mode for deleted files

Added script to populate the rows
Adding new field to selects and handle it in all places, where needed

Using a 10 byte index for the new field per
http://lists.wikimedia.org/pipermail/wikitech-l/2012-September/063429.html

Change-Id: Ie54a513fe361202e63df44be44a0fdd91926c974
13 files changed:
RELEASE-NOTES-1.21
includes/AutoLoader.php
includes/api/ApiQueryFilearchive.php
includes/filerepo/file/ArchivedFile.php
includes/filerepo/file/LocalFile.php
includes/installer/DatabaseUpdater.php
includes/installer/MysqlUpdater.php
includes/installer/SqliteUpdater.php
includes/specials/SpecialUndelete.php
maintenance/archives/patch-fa_sha1.sql [new file with mode: 0644]
maintenance/deleteArchivedFiles.inc
maintenance/populateFilearchiveSha1.php [new file with mode: 0644]
maintenance/tables.sql