]> git.koha-community.org Git - koha.git/commit
Bug 14570: Handle missing 'relationship' in atomicupdate (bad data)
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Aug 2019 10:22:50 +0000 (07:22 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 20 Aug 2019 15:06:26 +0000 (16:06 +0100)
commitee178f42ded6c3c0342e9ed478b070117a8b9776
tree2e013de24def56b05936d1e42a704d2e3dd36cd3
parent3bff8a17eaf96c10b1b30babd0271f0eb2bc4fc0
Bug 14570: Handle missing 'relationship' in atomicupdate (bad data)

This patch adds two steps to the upgrade process:
- Handle the pathologic case in which there's a guarantorid and no
'relationship'.
- Performs a cleanup on the relevant columns when the guarantor data
contains a guarantorid, and is then migrated into the
borrower_relationships table. The original code left the information
in the borrowers table, so no clear separation between guarantors as
patrons and the virtual ones.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/atomicupdate/bug_14570.perl