LP#1488655: fix MR remapping upon fingerprint change
authorGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 15:42:52 +0000 (11:42 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 16 Nov 2016 19:55:32 +0000 (14:55 -0500)
commit88a106fbadb5d84e9958e2da502d29986e2aa6f4
tree2cda0fc8e83de6bd96883d6402b55bd04ff945ed
parenta83cb2e90ae132110fb6b514e563c8096654f960
LP#1488655: fix MR remapping upon fingerprint change

This patch ensures that if the fingerprint of a bib changes, the
bib will be moved to a new metarecord as opposed to ending up
as a member of more than one metarecord.

To test
-------
[1] Note the metarecord that a bib belongs to.
[2] Change the bib so that its fingerprint changes -- with stock
    cbf settings, editing the 245$a should suffice.
[3] Note that it is now a component of two metarecords.
[4] Apply the patch.
[5] Repeat step 2 or force a reingest. The bib should now be part
    of exactly one metarecord.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fix_metarecord_remapping.sql [new file with mode: 0644]