-- duplication:
-- DROP INDEX authority.by_heading_and_thesaurus;
+-- 0448.data.trigger.circ.staff_age_to_lost.sql
+
+INSERT INTO action_trigger.hook (key,core_type,description,passive) VALUES
+ ( 'circ.staff_age_to_lost',
+ 'circ',
+ oils_i18n_gettext(
+ 'circ.staff_age_to_lost',
+ 'An overdue circulation should be aged to a Lost status.',
+ 'ath',
+ 'description'
+ ),
+ TRUE
+ )
+;
+
+INSERT INTO action_trigger.event_definition (
+ id,
+ active,
+ owner,
+ name,
+ hook,
+ validator,
+ reactor,
+ delay_field
+ ) VALUES (
+ 36,
+ FALSE,
+ 1,
+ 'circ.staff_age_to_lost',
+ 'circ.staff_age_to_lost',
+ 'CircIsOverdue',
+ 'MarkItemLost',
+ 'due_date'
+ )
+;
+
+
\qecho Upgrade script completed.