Koha-clms/installer/data/mysql/mandatory
Nick Clemens 74a49b117b
Bug 39452: Add CardnumberLog to track changes to cardnumbers
This patch adds a new preference 'CardnumberLog' which allows libraries
to track cardnumebr changes for patrons.

While these changes are currently captured in the BorrowersLog, some libraries
would like to keep cardnumber chanegs specifically, and for a longer period than
other borrower modifications.

To test:
1 - Apply patches, update database
2 - Ensure BorrowersLog and CardnumberLog are enabled
3 - Edit a borrower, not thier cardnuber
4 - Confirm in Modification Log only one entry is recorded
5 - Edit again, changing cardnumber only
6 - Confirm 2 modifications are recorded, a MODIFY and a MODIFY_CARDNUMBER
7 - Disable BorrowersLog
8 - Edit patron changing something other than cardnumber
9 - Confirm no log generated
10 - Edit borrowers cardnumber
11 - Confirm one MODIFY_CARDNUMBER recorded
12 - Disable CardnumberLog
13 - Edit patrons cardnumber and other fields
14 - Confirm no logs generated

Signed-off-by: Philip Orr <philip.orr@lmscloud.de>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-05-09 09:12:12 +02:00
..
audio_alerts.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
auth_val_cat.sql Bug 38222: (QA follow-up) Add av category update 2024-10-25 16:41:35 +02:00
keyboard_shortcuts.sql Bug 27769: Update default key mapping to copy text 2024-06-10 16:18:56 +01:00
message_transport_types.sql Bug 25334: Add generic 'phone' message transport type 2020-11-05 15:24:20 +01:00
sample_notices_message_attributes.sql Bug 30300: Add a patron expiry messaging preference 2025-02-03 14:26:53 +01:00
sample_notices_message_transports.sql Bug 30300: Add a patron expiry messaging preference 2025-02-03 14:26:53 +01:00
subtag_registry.sql Bug 39147: Add more missing languages 2025-04-23 09:35:18 +02:00
sysprefs.sql Bug 39452: Add CardnumberLog to track changes to cardnumbers 2025-05-09 09:12:12 +02:00
userflags.sql Bug 30708: DB changes 2023-10-18 15:41:41 -03:00
userpermissions.sql Bug 37211: Update permission name to edit_accountline_notes 2025-04-14 08:51:15 +02:00