Stamping hold-cancel-via-sip upgrade script
authorMike Rylander <mrylander@gmail.com>
Thu, 11 Jul 2013 17:09:11 +0000 (13:09 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 11 Jul 2013 17:09:11 +0000 (13:09 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0806.data.hold_cancel_via_sip.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_cancel_via_sip.sql [deleted file]

index 37a0633..35c130b 100644 (file)
@@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0805', :eg_version); -- bshum/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0806', :eg_version); -- berick/miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0806.data.hold_cancel_via_sip.sql b/Open-ILS/src/sql/Pg/upgrade/0806.data.hold_cancel_via_sip.sql
new file mode 100644 (file)
index 0000000..92fed7b
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0806', :eg_version);
+
+INSERT INTO action.hold_request_cancel_cause (id,label) 
+    VALUES (7,'Patron via SIP');
+
+COMMIT;
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
deleted file mode 100644 (file)
index fcf1783..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-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;