From: Galen Charlton Date: Thu, 12 Aug 2021 14:00:30 +0000 (-0400) Subject: LP#1937299: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=530e0e395939583c223ad032198f7f41a7a5debb;p=evergreen%2Fpines.git LP#1937299: 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 1b1ea76803..690ff23040 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,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 ('1271', :eg_version); -- phasefx/tmcanna/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1272', :eg_version); -- JBoyer/tmcanna/gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql b/Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql new file mode 100644 index 0000000000..27ca67af4d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql @@ -0,0 +1,43 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1272', :eg_version); + +DO $$ +BEGIN + + PERFORM FROM config.usr_setting_type WHERE name = 'circ.collections.exempt'; + + IF NOT FOUND THEN + + INSERT INTO config.usr_setting_type ( + name, + opac_visible, + label, + description, + datatype, + reg_default + ) VALUES ( + 'circ.collections.exempt', + FALSE, + oils_i18n_gettext( + 'circ.collections.exempt', + 'Collections: Exempt', + 'cust', + 'label' + ), + oils_i18n_gettext( + 'circ.collections.exempt', + 'User is exempt from collections tracking/processing', + 'cust', + 'description' + ), + 'bool', + 'false' + ); + + END IF; + +END +$$; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql deleted file mode 100644 index 1e7c40792d..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql +++ /dev/null @@ -1,43 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -DO $$ -BEGIN - - PERFORM FROM config.usr_setting_type WHERE name = 'circ.collections.exempt'; - - IF NOT FOUND THEN - - INSERT INTO config.usr_setting_type ( - name, - opac_visible, - label, - description, - datatype, - reg_default - ) VALUES ( - 'circ.collections.exempt', - FALSE, - oils_i18n_gettext( - 'circ.collections.exempt', - 'Collections: Exempt', - 'cust', - 'label' - ), - oils_i18n_gettext( - 'circ.collections.exempt', - 'User is exempt from collections tracking/processing', - 'cust', - 'description' - ), - 'bool', - 'false' - ); - - END IF; - -END -$$; - -COMMIT;