https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40817

--- Comment #14 from Martin Renvoize (ashimema) 
<[email protected]> ---
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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to