]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0647.data.hold-notification-cleanup-mod.sql
LP#1661688: Add a link and other tweaks to alternate hold pickup feature
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0647.data.hold-notification-cleanup-mod.sql
1 -- Evergreen DB patch XXXX.data.hold-notification-cleanup-mod.sql
2 BEGIN;
3
4 -- check whether patch can be applied
5 SELECT evergreen.upgrade_deps_block_check('0647', :eg_version);
6
7 INSERT INTO action_trigger.cleanup ( module, description ) VALUES (
8     'CreateHoldNotification',
9     oils_i18n_gettext(
10         'CreateHoldNotification',
11         'Creates a hold_notification record for each notified hold',
12         'atclean',
13         'description'
14     )
15 );
16
17 UPDATE action_trigger.event_definition 
18     SET 
19         cleanup_success = 'CreateHoldNotification' 
20     WHERE 
21         id = 5 -- stock hold-ready email event_def
22         AND cleanup_success IS NULL; -- don't clobber any existing cleanup mod
23
24 COMMIT;