Koha-clms/installer/data/mysql/atomicupdate
Martin Renvoize 4633d37931
Bug 41898: Add atomicupdate and update schema for 'issued' booking status
Extends bookings.status enum to ('new', 'cancelled', 'issued', 'completed').

Migrates existing data intelligently: rows with an active checkout in the
issues table (via booking_id) are updated to 'issued'; rows whose item has
already been returned retain 'completed', which is already correct under the
new scheme where 'completed' means the booking was fully fulfilled and the
item returned.

Sponsored-by: OpenFifth <https://openfifth.co.uk/>
Sponsored-by: Westminster City Council <https://www.westminster.gov.uk/>
Signed-off-by: Hannah Dunne-Howrie <hdunne-howrie@westminster.gov.uk>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-27 15:53:31 +00:00
..
README Bug 39392: Fix typos in atomicupdate README 2025-04-14 08:51:02 +02:00
bug_41898.pl Bug 41898: Add atomicupdate and update schema for 'issued' booking status 2026-07-27 15:53:31 +00:00
skeleton.pl Bug 38394: Remove existing try/catch and say_failure from DB revs 2024-11-07 16:29:20 +01:00

README

Please put your database revision files in this folder.
The Release Manager will remove them from here when pushing your patches.

To use the skeleton.pl for your update:

% cp installer/data/mysql/atomicupdate/skeleton.pl
installer/data/mysql/atomicupdate/bug_XXXXX.pl

and put your modifications in where noted.