3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
5 INSERT INTO config.usr_setting_type (
13 'circ.default_overdue_notices_enabled',
16 'circ.default_overdue_notices_enabled',
17 'Receive Overdue and Courtesy Emails',
22 'circ.default_overdue_notices_enabled',
23 'Receive overdue and predue email notifications',
34 \qecho The following query will set the circ.default_overdue_notices_enabled
35 \qecho user setting to true (the default value) for all existing users,
36 \qecho ensuring they continue to receive overdue/predue emails.
38 \qecho INSERT INTO actor.usr_setting (usr, name, value)
41 \qecho 'circ.default_overdue_notices_enabled',
43 \qecho FROM actor.usr;
45 \qecho The following query will add the circ.default_overdue_notices_enabled
46 \qecho user setting as an opt-in setting for all action triggers that send
47 \qecho emails based on a circ being due (unless another opt-in setting is
48 \qecho already in use).
50 \qecho UPDATE action_trigger.event_definition
51 \qecho SET opt_in_setting = 'circ.default_overdue_notices_enabled',
52 \qecho usr_field = 'usr'
53 \qecho WHERE opt_in_setting IS NULL
54 \qecho AND hook = 'checkout.due'
55 \qecho AND reactor = 'SendEmail';
57 \qecho Evergreen admins who wish to use the new setting should run both of
58 \qecho the above queries. Admins who do not wish to use it, or who are
59 \qecho already using a custom opt-in setting of their own, do not need to