From: Galen Charlton Date: Thu, 3 Mar 2016 02:13:02 +0000 (-0500) Subject: LP#1533329: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=634d20e550ee94022ced7c2dde17dffa4e458997;p=evergreen%2Fequinox.git LP#1533329: stamp DB update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 1ec157b2e3..96263afeac 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('0968', :eg_version); -- jstompro/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0969', :eg_version); -- jeffdavis/stompro CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql b/Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql new file mode 100644 index 0000000000..cb47c74950 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql @@ -0,0 +1,21 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0969', :eg_version); -- jeffdavis/stompro + +INSERT INTO config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES + ('org.restrict_opt_to_depth', + 'sec', + oils_i18n_gettext('org.restrict_opt_to_depth', + 'Restrict patron opt-in to home library and related orgs at specified depth', + 'coust', 'label'), + oils_i18n_gettext('org.restrict_opt_to_depth', + 'Patrons at this library can only be opted-in at org units which are within the '|| + 'library''s section of the org tree, at or below the depth specified by this setting. '|| + 'They cannot be opted in at any other libraries.', + 'coust', 'description'), + 'integer'); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql deleted file mode 100644 index 6e0a3d806a..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql +++ /dev/null @@ -1,21 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type - (name, grp, label, description, datatype) - VALUES - ('org.restrict_opt_to_depth', - 'sec', - oils_i18n_gettext('org.restrict_opt_to_depth', - 'Restrict patron opt-in to home library and related orgs at specified depth', - 'coust', 'label'), - oils_i18n_gettext('org.restrict_opt_to_depth', - 'Patrons at this library can only be opted-in at org units which are within the '|| - 'library''s section of the org tree, at or below the depth specified by this setting. '|| - 'They cannot be opted in at any other libraries.', - 'coust', 'description'), - 'integer'); - -COMMIT; -