LP#1488655: fix MR remapping upon fingerprint change user/rogan/lp1488655_fix_meta_record_remapping_signoff
authorGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 15:42:52 +0000 (11:42 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Fri, 4 Nov 2016 14:16:29 +0000 (10:16 -0400)
commit9b6c8b83ae1d3a2507fd1abaf128cc7679379b11
tree2768477f0bdf4ba76f30717bfda3cfeb84950869
parent59503ede86bb06c97319f12e96bc30604264307d
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>
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]