From: Jane Sandberg Date: Thu, 23 Jul 2020 13:37:07 +0000 (-0700) Subject: LP#1705302: Stamping Upgrade Script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c1c87fd63733044b95bbf5de70898448059b9df8;p=evergreen%2Fequinox.git LP#1705302: Stamping Upgrade Script Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index f5b836e83b..be8ca10f8c 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 ('1206', :eg_version); -- miker/dyrcona +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1207', :eg_version); -- mrisher/tmcanna/sandbergja CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1207.data.lp1705302-update-receipt-template-setting-descriptions.sql b/Open-ILS/src/sql/Pg/upgrade/1207.data.lp1705302-update-receipt-template-setting-descriptions.sql new file mode 100644 index 0000000000..f318618cea --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1207.data.lp1705302-update-receipt-template-setting-descriptions.sql @@ -0,0 +1,36 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1207', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Text to be inserted into Print Templates in place of {{includes.alert_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.alert_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Text to be inserted into Print Templates in place of {{includes.event_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.event_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Text to be inserted into Print Templates in place of {{includes.footer_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.footer_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Text to be inserted into Print Templates in place of {{includes.header_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.header_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Text to be inserted into Print Templates in place of {{includes.notice_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.notice_text'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql deleted file mode 100644 index ae4c590b2b..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql +++ /dev/null @@ -1,36 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE config.org_unit_setting_type - SET description = oils_i18n_gettext( - 'circ.staff_client.receipt.alert_text', - 'Text to be inserted into Print Templates in place of {{includes.alert_text}}', - 'cwst', 'label') - WHERE name = 'circ.staff_client.receipt.alert_text'; -UPDATE config.org_unit_setting_type - SET description = oils_i18n_gettext( - 'circ.staff_client.receipt.event_text', - 'Text to be inserted into Print Templates in place of {{includes.event_text}}', - 'cwst', 'label') - WHERE name = 'circ.staff_client.receipt.event_text'; -UPDATE config.org_unit_setting_type - SET description = oils_i18n_gettext( - 'circ.staff_client.receipt.footer_text', - 'Text to be inserted into Print Templates in place of {{includes.footer_text}}', - 'cwst', 'label') - WHERE name = 'circ.staff_client.receipt.footer_text'; -UPDATE config.org_unit_setting_type - SET description = oils_i18n_gettext( - 'circ.staff_client.receipt.header_text', - 'Text to be inserted into Print Templates in place of {{includes.header_text}}', - 'cwst', 'label') - WHERE name = 'circ.staff_client.receipt.header_text'; -UPDATE config.org_unit_setting_type - SET description = oils_i18n_gettext( - 'circ.staff_client.receipt.notice_text', - 'Text to be inserted into Print Templates in place of {{includes.notice_text}}', - 'cwst', 'label') - WHERE name = 'circ.staff_client.receipt.notice_text'; - -COMMIT;