https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42425 --- Comment #39 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 211497 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211497&action=edit Bug 42425: DB changes This patch adds a checkin_id column to accountlines, so the debits and credits created during a check-in can be linked to the check-in that created them: - checkin_id INT(11) DEFAULT NULL, FK to checkins, ON DELETE SET NULL ON UPDATE CASCADE Existing accountlines are not backfilled. Linking historical lines to a check-in can only be done heuristically, and a wrong link cannot be told apart from a correct one later. The column is populated going forward. Test plan: 1. Apply patch 2. Update the database: $ ktd --shell k$ updatedatabase => SUCCESS: "Added checkin_id column to accountlines" 3. Run the update again => SUCCESS: No errors, nothing is done 4. Sign off :-D Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> -- You are receiving this mail because: You are watching all bug changes.