Stamping upgrade script for "Opac Renewal at original circ library"
authorMike Rylander <mrylander@gmail.com>
Sat, 16 Jul 2011 14:25:44 +0000 (10:25 -0400)
committerMike Rylander <mrylander@gmail.com>
Sat, 16 Jul 2011 14:25:44 +0000 (10:25 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql [deleted file]

index 5adb855..da9bebb 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 ('0580', :eg_version); -- tsbere via miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0581', :eg_version); -- tsbere via miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql
new file mode 100644 (file)
index 0000000..d05998e
--- /dev/null
@@ -0,0 +1,23 @@
+-- Evergreen DB patch 0581.schema.opac_renewal_reuse_circ_lib.sql
+--
+--
+BEGIN;
+
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0581', :eg_version);
+
+INSERT INTO config.global_flag (name, label, enabled)
+    VALUES (
+        'circ.opac_renewal.use_original_circ_lib',
+        oils_i18n_gettext(
+            'circ.opac_renewal.use_original_circ_lib',
+            'Circ: Use original circulation library on opac renewal instead of user home library',
+            'cgf',
+            'label'
+        ),
+        FALSE
+    );
+
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql
deleted file mode 100644 (file)
index 92f8592..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-INSERT INTO config.global_flag (name, label, enabled)
-    VALUES (
-        'circ.opac_renewal.use_original_circ_lib',
-        oils_i18n_gettext(
-            'circ.opac_renewal.use_original_circ_lib',
-            'Circ: Use original circulation library on opac renewal instead of user home library',
-            'cgf',
-            'label'
-        ),
-        FALSE
-    );