3 -- add notify columns to booking.reservation
4 ALTER TABLE booking.reservation
5 ADD COLUMN email_notify BOOLEAN NOT NULL DEFAULT FALSE;
7 -- create the hook and validator
8 INSERT INTO action_trigger.hook (key, core_type, description, passive)
9 VALUES ('reservation.available', 'bresv', 'A reservation is available for pickup', false);
10 INSERT INTO action_trigger.validator (module, description)
11 VALUES ('ReservationIsAvailable','Checked that a reserved resource is available for checkout');
13 -- create org unit setting to toggle checkbox display
14 INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
15 VALUES ('booking.allow_email_notify', 'booking.allow_email_notify', 'Permit email notification when a reservation is ready for pickup.', 'bool');