Bring the 1.6.1-2.0 upgrade script up to date for the push_due_date_tgr
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Oct 2010 20:13:10 +0000 (20:13 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Oct 2010 20:13:10 +0000 (20:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18128 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index b263f2c..043e66a 100644 (file)
@@ -18598,6 +18598,10 @@ ALTER TABLE vandelay.queued_bib_record
 ALTER TABLE action.hold_copy_map
        ALTER COLUMN id SET DATA TYPE bigint;
 
+-- Make due times get pushed to 23:59:59 on insert OR update
+DROP TRIGGER push_due_date_tgr ON action.circulation;
+CREATE TRIGGER push_due_date_tgr BEFORE INSERT OR UPDATE ON action.circulation FOR EACH ROW EXECUTE PROCEDURE action.push_circ_due_time();
+
 COMMIT;
 
 -- Some operations go outside of the transaction, because they may