From: phasefx Date: Thu, 28 Oct 2010 17:28:50 +0000 (+0000) Subject: bring trunk's version of 1.6.1-2.0-upgrade-db.sql inline with rel_2_0 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b068d869bc909155c41e3218336ce2aad75973f3;p=evergreen%2Ftadl.git bring trunk's version of 1.6.1-2.0-upgrade-db.sql inline with rel_2_0 git-svn-id: svn://svn.open-ils.org/ILS/trunk@18529 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql b/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql index b68ded7cf6..f9876c781e 100644 --- a/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql @@ -18832,5 +18832,42 @@ CREATE UNIQUE INDEX unique_by_heading_and_thesaurus -- 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.