Stamping 0853: 'Prefer external URL' OUS
authorDan Wells <dbw2@calvin.edu>
Tue, 21 Jan 2014 20:07:29 +0000 (15:07 -0500)
committerDan Wells <dbw2@calvin.edu>
Tue, 21 Jan 2014 20:07:29 +0000 (15:07 -0500)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0853.data.prefer_external_url_OUS.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.prefer_external_url_OUS.sql [deleted file]

index e66e8e4..d9950b4 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 ('0852', :eg_version); -- miker/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0853', :eg_version); -- dbs/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0853.data.prefer_external_url_OUS.sql b/Open-ILS/src/sql/Pg/upgrade/0853.data.prefer_external_url_OUS.sql
new file mode 100644 (file)
index 0000000..deda355
--- /dev/null
@@ -0,0 +1,18 @@
+-- Evergreen DB patch XXXX.data.prefer_external_url_OUS.sql
+--
+-- FIXME: insert description of change, if needed
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0853', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'lib.prefer_external_url', 'lib',
+  'Use external "library information URL" in copy table, if available',
+  'If set to true, the library name in the copy details section will link to the URL associated with the "Library information URL" library setting rather than the library information page generated by Evergreen.',
+  'bool', null
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.prefer_external_url_OUS.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.prefer_external_url_OUS.sql
deleted file mode 100644 (file)
index b67cbcf..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
--- Evergreen DB patch XXXX.data.prefer_external_url_OUS.sql
---
--- FIXME: insert description of change, if needed
---
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-( name, grp, label, description, datatype, fm_class ) VALUES
-( 'lib.prefer_external_url', 'lib',
-  'Use external "library information URL" in copy table, if available',
-  'If set to true, the library name in the copy details section will link to the URL associated with the "Library information URL" library setting rather than the library information page generated by Evergreen.',
-  'bool', null
-);
-
-COMMIT;