LP#1712657 Merge patron checkout history user/berick/lp1712657-patron-merge-carries-checkouts
authorBill Erickson <berickxx@gmail.com>
Wed, 23 Aug 2017 19:39:16 +0000 (15:39 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 23 Aug 2017 19:39:18 +0000 (15:39 -0400)
commit17ccec8aff7b81d461180c32d835731bbb014d89
tree0ad3fba4c831d2a13f87d661b567baa7be4084bb
parentb5a9d112692bef30da88cea2d52c76c4d775aa5a
LP#1712657 Merge patron checkout history

Transfer checkout history rows to the destination user during patron
merge.

To Test:

1. Enable circ history tracking for 2 users, ideally 2 with same
   last name for easy searching.
2. Check out items to both patrons.
3. Load the 2 patrons in the patron search UI and merge one into the other.
4. action.usr_circ_history rows previously linked to the deleted patron
   will now be linked to the active/lead patron.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.user-merge-circ-history.sql [new file with mode: 0644]