MDL-33330 Create new unique index in files_reference
commit6bbf31c395ca5bb0f28e97ab32b0a200b871f2d1
authorDavid Mudrak <david@moodle.com>
Thu, 31 May 2012 09:25:59 +0000 (31 11:25 +0200)
committerDavid Mudrak <david@moodle.com>
Tue, 5 Jun 2012 12:07:24 +0000 (5 14:07 +0200)
treefcfcf7322617a2ff9f866e049721c4f5266f6d5b
parent8f47a60e4e293cd4fa2760ad31c233bc8cbebd98
MDL-33330 Create new unique index in files_reference

The combination of repositoryid and reference field is supposed to be a
unique identification of an external file. Because the reference is a
TEXT field, we can't use it to compose the index. So we use the
referencehash instead and the file API is responsible to keep it
up-to-date.
lib/db/install.xml
lib/db/upgrade.php
version.php