Add upgrade script for lib.prefer_external_url OUS
authorDan Scott <dscott@laurentian.ca>
Wed, 15 Jan 2014 02:33:34 +0000 (21:33 -0500)
committerDan Wells <dbw2@calvin.edu>
Tue, 21 Jan 2014 19:57:42 +0000 (14:57 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/upgrade/XXXX.data.prefer_external_url_OUS.sql [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..b67cbcf
--- /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('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;