From: Mike Rylander Date: Wed, 15 Sep 2021 14:31:39 +0000 (-0400) Subject: Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=789cbe0b63673040082e9129f295595d03c3a59a;p=evergreen%2Fmasslnc.git Stamping upgrade script Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 6857970f42..16aa966575 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 ('1284', :eg_version); -- blake / terranm / jboyer +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1285', :eg_version); -- phasefx / gcollum / miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1285.data.lp1905028.item_value_fields.sql b/Open-ILS/src/sql/Pg/upgrade/1285.data.lp1905028.item_value_fields.sql new file mode 100644 index 0000000000..ec117b8593 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1285.data.lp1905028.item_value_fields.sql @@ -0,0 +1,45 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1285', :eg_version); + +INSERT into config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'circ.primary_item_value_field', + 'circ', + oils_i18n_gettext( + 'circ.primary_item_value_field', + 'Use Item Price or Cost as Primary Item Value', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.primary_item_value_field', + 'Expects "price" or "cost" and defaults to price. This refers to the corresponding field on the item record and gets used in such contexts as notices, max fine values when using item price caps (setting or fine rules), and long overdue, damaged, and lost billings.', + 'coust', + 'description' + ), + 'string' + ); + +INSERT into config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'circ.secondary_item_value_field', + 'circ', + oils_i18n_gettext( + 'circ.secondary_item_value_field', + 'Use Item Price or Cost as Backup Item Value', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.secondary_item_value_field', + 'Expects "price" or "cost", but defaults to neither. This refers to the corresponding field on the item record and is used as a second-pass fall-through value when determining an item value. If needed, Evergreen will still look at the "Default Item Price" setting as a final fallback.', + 'coust', + 'description' + ), + 'string' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1905028.item_value_fields.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1905028.item_value_fields.sql deleted file mode 100644 index b27de609e6..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1905028.item_value_fields.sql +++ /dev/null @@ -1,45 +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 ( - 'circ.primary_item_value_field', - 'circ', - oils_i18n_gettext( - 'circ.primary_item_value_field', - 'Use Item Price or Cost as Primary Item Value', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'circ.primary_item_value_field', - 'Expects "price" or "cost" and defaults to price. This refers to the corresponding field on the item record and gets used in such contexts as notices, max fine values when using item price caps (setting or fine rules), and long overdue, damaged, and lost billings.', - 'coust', - 'description' - ), - 'string' - ); - -INSERT into config.org_unit_setting_type - (name, grp, label, description, datatype) - VALUES ( - 'circ.secondary_item_value_field', - 'circ', - oils_i18n_gettext( - 'circ.secondary_item_value_field', - 'Use Item Price or Cost as Backup Item Value', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'circ.secondary_item_value_field', - 'Expects "price" or "cost", but defaults to neither. This refers to the corresponding field on the item record and is used as a second-pass fall-through value when determining an item value. If needed, Evergreen will still look at the "Default Item Price" setting as a final fallback.', - 'coust', - 'description' - ), - 'string' - ); - -COMMIT;