LP#1705302: Stamping Upgrade Script
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 23 Jul 2020 13:37:07 +0000 (06:37 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Thu, 23 Jul 2020 13:37:07 +0000 (06:37 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1207.data.lp1705302-update-receipt-template-setting-descriptions.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql [deleted file]

index f5b836e..be8ca10 100644 (file)
@@ -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 (file)
index 0000000..f318618
--- /dev/null
@@ -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 (file)
index ae4c590..0000000
+++ /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;