From: Chris Sharp <csharp@georgialibraries.org> Date: Thu, 21 Feb 2019 18:05:48 +0000 (-0500) Subject: LP#1787479: Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fed895c05164efb1c01b1516b3bc806477fc587f;p=evergreen%2Fequinox.git LP#1787479: Stamping upgrade script Signed-off-by: Chris Sharp <csharp@georgialibraries.org> --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index eb484ceab5..8c5113f7a4 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 ('1152', :eg_version); -- berick/dbwells +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1153', :eg_version); -- abowling/kmlussier/csharp CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1153.data.update_item_label_org_unit_labels.sql b/Open-ILS/src/sql/Pg/upgrade/1153.data.update_item_label_org_unit_labels.sql new file mode 100644 index 0000000000..9cfee9b6ec --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1153.data.update_item_label_org_unit_labels.sql @@ -0,0 +1,96 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1153', :eg_version); + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.left_margin' + ,'Item Print Label - Left Margin for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.left_margin' + ,'Set the default left margin for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.left_margin'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.left_margin' + ,'Item Print Label - Left Margin for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.left_margin' + ,'Set the default left margin for the item print Pocket Label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.left_margin'; + + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.height' + ,'Item Print Label - Height for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.height' + ,'Set the default height for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.height'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.width' + ,'Item Print Label - Width for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.width' + ,'Set the default width for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.width'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.height' + ,'Item Print Label - Height for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.height' + ,'Set the default height for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.height'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.width' + ,'Item Print Label - Width for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.width' + ,'Set the default width for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.width'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels deleted file mode 100644 index dbb59f74b5..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels +++ /dev/null @@ -1,96 +0,0 @@ -BEGIN; - ---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.left_label.left_margin' - ,'Item Print Label - Left Margin for Spine Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.left_label.left_margin' - ,'Set the default left margin for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.left_label.left_margin'; - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.right_label.left_margin' - ,'Item Print Label - Left Margin for Pocket Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.right_label.left_margin' - ,'Set the default left margin for the item print Pocket Label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.right_label.left_margin'; - - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.left_label.height' - ,'Item Print Label - Height for Spine Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.left_label.height' - ,'Set the default height for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.left_label.height'; - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.left_label.width' - ,'Item Print Label - Width for Spine Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.left_label.width' - ,'Set the default width for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.left_label.width'; - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.right_label.height' - ,'Item Print Label - Height for Pocket Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.right_label.height' - ,'Set the default height for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.right_label.height'; - -UPDATE config.org_unit_setting_type -SET label = oils_i18n_gettext( - 'webstaff.cat.label.right_label.width' - ,'Item Print Label - Width for Pocket Label' - ,'coust' - ,'label' - ), - description = oils_i18n_gettext( - 'webstaff.cat.label.right_label.width' - ,'Set the default width for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' - ,'coust' - ,'description' - ) -WHERE NAME = 'webstaff.cat.label.right_label.width'; - -COMMIT;