https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40817 --- Comment #14 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193202&action=edit Bug 40817: Update database for hold-account linking This patch adds database schema changes to support direct linking between holds and their associated account lines (fees/charges): * Add reserve_id and old_reserve_id columns to accountlines table * Add foreign key constraints with CASCADE/SET NULL behavior * Add indexes for performance on the new foreign key columns * Add atomic update script for safe database migration These schema changes enable: - Direct linking between current holds and their fees - Automatic migration of account line links when holds move to old_reserves - Proper referential integrity with cascading behavior Signed-off-by: Jackie Usher <jackie.usher@westsussex.gov.uk> -- You are receiving this mail because: You are watching all bug changes.