From: Chris Sharp Date: Wed, 28 Oct 2020 19:57:42 +0000 (-0400) Subject: LP#1325704: stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=69bf2f251df60da4186fd50b909e9332ddb977b5;p=evergreen%2Fpines.git LP#1325704: stamping upgrade script Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index d52b1c9546..a78a2a063c 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 ('1241', :eg_version); -- JBoyer/csharp +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1242', :eg_version); -- remingtron/terranm CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1242.schema.lost_lo_claimsret_descrip.sql b/Open-ILS/src/sql/Pg/upgrade/1242.schema.lost_lo_claimsret_descrip.sql new file mode 100644 index 0000000000..ab418af71b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1242.schema.lost_lo_claimsret_descrip.sql @@ -0,0 +1,54 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('1242', :eg_version); + +-- Long Overdue +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.longoverdue', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.longoverdue'; + +-- Lost +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.lost', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.lost'; + +-- Claims Returned +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.claimsreturned', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.claimsreturned'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lost_lo_claimsret_descrip.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lost_lo_claimsret_descrip.sql deleted file mode 100644 index 6b0a41a6fd..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lost_lo_claimsret_descrip.sql +++ /dev/null @@ -1,54 +0,0 @@ -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - --- Long Overdue -UPDATE config.org_unit_setting_type -SET description = oils_i18n_gettext( - 'ui.circ.items_out.longoverdue', -'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| -'or "Other/Special Circulations") the circulation '|| -'should appear while checked out, and B. Whether the circulation should '|| -'continue to appear in the "Other" tab when checked in with '|| -'oustanding fines. '|| -'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || -'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', - 'coust', - 'description' - ) -WHERE NAME = 'ui.circ.items_out.longoverdue'; - --- Lost -UPDATE config.org_unit_setting_type -SET description = oils_i18n_gettext( - 'ui.circ.items_out.lost', -'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| -'or "Other/Special Circulations") the circulation '|| -'should appear while checked out, and B. Whether the circulation should '|| -'continue to appear in the "Other" tab when checked in with '|| -'oustanding fines. '|| -'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || -'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', - 'coust', - 'description' - ) -WHERE NAME = 'ui.circ.items_out.lost'; - --- Claims Returned -UPDATE config.org_unit_setting_type -SET description = oils_i18n_gettext( - 'ui.circ.items_out.claimsreturned', -'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| -'or "Other/Special Circulations") the circulation '|| -'should appear while checked out, and B. Whether the circulation should '|| -'continue to appear in the "Other" tab when checked in with '|| -'oustanding fines. '|| -'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || -'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', - 'coust', - 'description' - ) -WHERE NAME = 'ui.circ.items_out.claimsreturned'; - -COMMIT;