From: Jane Sandberg Date: Sun, 23 Aug 2020 19:50:38 +0000 (-0700) Subject: Stamping upgrade script for sticky org-select X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6b3012b5cc6a29a63eff0e8a6fc6e37aa57dd0bd;p=evergreen%2Fpines.git Stamping upgrade script for sticky org-select 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 b1dacdd87f..94362634c0 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 ('1214', :eg_version); -- rhamby/willis/sandbergja +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1215', :eg_version); -- berick/tmcanna/sandbergja CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1215.data.holds-for-bib-org-select.sql b/Open-ILS/src/sql/Pg/upgrade/1215.data.holds-for-bib-org-select.sql new file mode 100644 index 0000000000..651a1279b3 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1215.data.holds-for-bib-org-select.sql @@ -0,0 +1,17 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1215', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.orgselect.cat.catalog.wide_holds', 'gui', 'integer', + oils_i18n_gettext( + 'eg.orgselect.cat.catalog.wide_holds', + 'Default org unit for catalog holds org unit selector', + 'cwst', 'label' + ) +); + +COMMIT; + + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.holds-for-bib-org-select.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.holds-for-bib-org-select.sql deleted file mode 100644 index ba516b5904..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.holds-for-bib-org-select.sql +++ /dev/null @@ -1,17 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); - -INSERT INTO config.workstation_setting_type (name, grp, datatype, label) -VALUES ( - 'eg.orgselect.cat.catalog.wide_holds', 'gui', 'integer', - oils_i18n_gettext( - 'eg.orgselect.cat.catalog.wide_holds', - 'Default org unit for catalog holds org unit selector', - 'cwst', 'label' - ) -); - -COMMIT; - -