From: Jason Stephenson Date: Mon, 27 Sep 2021 17:39:41 +0000 (-0400) Subject: Lp 1826759: Stamping Upgrade Script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=705029f0003041bd7b7fc450861ddd7fc85c8dca;p=working%2FEvergreen.git Lp 1826759: Stamping Upgrade Script Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 55c61aaddf..8706573e21 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 ('1301', :eg_version); -- csharp / gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1302', :eg_version); -- slink / dyrcona CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1302.data.lp1826759_items_out_typo.sql b/Open-ILS/src/sql/Pg/upgrade/1302.data.lp1826759_items_out_typo.sql new file mode 100644 index 0000000000..6280dc70df --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1302.data.lp1826759_items_out_typo.sql @@ -0,0 +1,50 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1302', :eg_version); + +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 '|| + 'outstanding 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'; + +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 '|| + 'outstanding 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'; + +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 '|| + 'outstanding 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'; + +END; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1826759.items_out_typo.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1826759.items_out_typo.sql deleted file mode 100644 index 6c8febcea0..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1826759.items_out_typo.sql +++ /dev/null @@ -1,50 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -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 '|| - 'outstanding 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'; - -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 '|| - 'outstanding 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'; - -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 '|| - 'outstanding 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'; - -END;