From: Mike Rylander Date: Wed, 28 Feb 2018 16:28:48 +0000 (-0500) Subject: Stamping follow-up upgrade script for copy alerts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8df62c2dda66962b180ac4e5160c15ac910e64a3;p=Evergreen.git Stamping follow-up upgrade script for copy alerts Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 5dd5f78d18..491f3bb7f7 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 ('1098', :eg_version); -- gmcharlt/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1099', :eg_version); -- gmcharlt/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1099.data.more-copy-alerts-active-by-default.sql b/Open-ILS/src/sql/Pg/upgrade/1099.data.more-copy-alerts-active-by-default.sql new file mode 100644 index 0000000000..afddf26799 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1099.data.more-copy-alerts-active-by-default.sql @@ -0,0 +1,17 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1099', :eg_version); + +\qecho Making the following copy alert types active by default; if you +\qecho are not using the web staff client yet, you may want to disable +\qecho them. +\qecho - Checkin of lost, missing, lost-and-paid, damaged, claims returned, +\qecho long overdue, and claims never checked out items. +\qecho - Checkout of lost, missing, lost-and-paid, damaged, claims returned, +\qecho long overdue, and claims never checked out items. + +UPDATE config.copy_alert_type +SET active = TRUE +WHERE id IN (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZB.data.more-copy-alerts-active-by-default.sql b/Open-ILS/src/sql/Pg/upgrade/ZZZB.data.more-copy-alerts-active-by-default.sql deleted file mode 100644 index 520ddc36ea..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/ZZZB.data.more-copy-alerts-active-by-default.sql +++ /dev/null @@ -1,17 +0,0 @@ -BEGIN; - ---- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -\qecho Making the following copy alert types active by default; if you -\qecho are not using the web staff client yet, you may want to disable -\qecho them. -\qecho - Checkin of lost, missing, lost-and-paid, damaged, claims returned, -\qecho long overdue, and claims never checked out items. -\qecho - Checkout of lost, missing, lost-and-paid, damaged, claims returned, -\qecho long overdue, and claims never checked out items. - -UPDATE config.copy_alert_type -SET active = TRUE -WHERE id IN (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17); - -COMMIT;