New "patron via SIP" hold cancellation reason
authorBill Erickson <berick@esilibrary.com>
Wed, 28 Nov 2012 15:44:14 +0000 (10:44 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 11 Jul 2013 16:10:45 +0000 (12:10 -0400)
Seed data and upgrade script.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_cancel_via_sip.sql [new file with mode: 0644]

index 80a7e0f..908d818 100644 (file)
@@ -366,6 +366,7 @@ INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (3,'Patron via ph
 INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (4,'Patron in person');
 INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (5,'Staff forced');
 INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (6,'Patron via OPAC');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (7,'Patron via SIP');
 SELECT SETVAL('action.hold_request_cancel_cause_id_seq', 100);
 
 CREATE TABLE action.hold_request (
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_cancel_via_sip.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_cancel_via_sip.sql
new file mode 100644 (file)
index 0000000..fcf1783
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+-- check whether patch can be applied
+-- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO action.hold_request_cancel_cause (id,label) 
+    VALUES (7,'Patron via SIP');
+
+COMMIT;