Stamping default pickup library upgrade script
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 30 Mar 2012 18:07:03 +0000 (14:07 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 30 Mar 2012 18:07:47 +0000 (14:07 -0400)
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0698.hold_default_pickup.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.hold_default_pickup.sql [deleted file]

index ce488be..1c62469 100644 (file)
@@ -86,7 +86,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 ('0697', :eg_version); -- tsbere/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0698', :eg_version); -- tsbere
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0698.hold_default_pickup.sql b/Open-ILS/src/sql/Pg/upgrade/0698.hold_default_pickup.sql
new file mode 100644 (file)
index 0000000..ba8b80d
--- /dev/null
@@ -0,0 +1,14 @@
+-- Evergreen DB patch 0698.hold_default_pickup.sql
+--
+-- FIXME: insert description of change, if needed
+--
+BEGIN;
+
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0698', :eg_version);
+
+INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatype)
+    VALUES ('opac.default_pickup_location', TRUE, 'Default Hold Pickup Location', 'Default location for holds pickup', 'integer');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.hold_default_pickup.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.hold_default_pickup.sql
deleted file mode 100644 (file)
index 67200e8..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatype)
-    VALUES ('opac.default_pickup_location', TRUE, 'Default Hold Pickup Location', 'Default location for holds pickup', 'integer');