bring trunk's version of 1.6.1-2.0-upgrade-db.sql inline with rel_2_0
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 Oct 2010 17:28:50 +0000 (17:28 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 Oct 2010 17:28:50 +0000 (17:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18529 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql

index b68ded7..f9876c7 100644 (file)
@@ -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.