From: Michele Morgan Date: Wed, 3 May 2023 19:08:56 +0000 (-0400) Subject: LP#1965446 Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cadb7351a932247e0ee9219217546ae09d4d0d4a;p=Evergreen.git LP#1965446 Stamping upgrade script Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 7d1d8caac8..a367c1f404 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 ('1371', :eg_version); -- phasefx / sandbergja +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1373', :eg_version); -- phasefx / rfrasur / jweston / mmorgan CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql b/Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql new file mode 100644 index 0000000000..a730f51557 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql @@ -0,0 +1,33 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('1373', :eg_version); + +-- 950.data.seed-values.sql + +INSERT INTO config.global_flag (name, value, enabled, label) +VALUES ( + 'circ.holds.api_require_monographic_part_when_present', + NULL, + FALSE, + oils_i18n_gettext( + 'circ.holds.api_require_monographic_part_when_present', + 'Holds: Require Monographic Part When Present for hold check.', + 'cgf', 'label' + ) +); + +INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype) +VALUES ( + 'circ.holds.ui_require_monographic_part_when_present', + oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present', + 'Require Monographic Part when Present', + 'coust', 'label'), + 'circ', + oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present', + 'Normally the selection of a monographic part during hold placement is optional if there is at least one copy on the bib without a monographic part. A true value for this setting will require part selection even under this condition.', + 'coust', 'description'), + 'bool' +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql deleted file mode 100644 index f384372b53..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql +++ /dev/null @@ -1,33 +0,0 @@ -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - --- 950.data.seed-values.sql - -INSERT INTO config.global_flag (name, value, enabled, label) -VALUES ( - 'circ.holds.api_require_monographic_part_when_present', - NULL, - FALSE, - oils_i18n_gettext( - 'circ.holds.api_require_monographic_part_when_present', - 'Holds: Require Monographic Part When Present for hold check.', - 'cgf', 'label' - ) -); - -INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype) -VALUES ( - 'circ.holds.ui_require_monographic_part_when_present', - oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present', - 'Require Monographic Part when Present', - 'coust', 'label'), - 'circ', - oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present', - 'Normally the selection of a monographic part during hold placement is optional if there is at least one copy on the bib without a monographic part. A true value for this setting will require part selection even under this condition.', - 'coust', 'description'), - 'bool' -); - -COMMIT;