From: Bill Erickson Date: Wed, 25 May 2016 14:16:54 +0000 (-0400) Subject: JBAS-905 Reduce copy status checkout alerts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95932ec01eca777ef61ea7b2115ec0baf857d131;p=working%2FEvergreen.git JBAS-905 Reduce copy status checkout alerts Avoid copy status checkout alerts for these: 4 -- Missing 104 -- Evaluations 107 -- Display 112 -- Cleared 114 -- Workroom 115 -- For Opening 103 -- Story Time Signed-off-by: Bill Erickson --- diff --git a/KCLS/sql/schema/deploy/copy-status-alerts.sql b/KCLS/sql/schema/deploy/copy-status-alerts.sql new file mode 100644 index 0000000000..6ddd649857 --- /dev/null +++ b/KCLS/sql/schema/deploy/copy-status-alerts.sql @@ -0,0 +1,17 @@ +-- Deploy kcls-evergreen:copy-status-alerts to pg +-- requires: purge-user-activity + +BEGIN; + +UPDATE config.copy_status SET checkout_ok = TRUE +WHERE id in ( + 4, -- Missing + 104, -- Evaluations + 107, -- Display + 112, -- Cleared + 114, -- Workroom + 115, -- For Opening + 103 -- Story Time +); + +COMMIT; diff --git a/KCLS/sql/schema/revert/copy-status-alerts.sql b/KCLS/sql/schema/revert/copy-status-alerts.sql new file mode 100644 index 0000000000..89ac6d3ab4 --- /dev/null +++ b/KCLS/sql/schema/revert/copy-status-alerts.sql @@ -0,0 +1,17 @@ +-- Revert kcls-evergreen:copy-status-alerts from pg + +BEGIN; + +UPDATE config.copy_status SET checkout_ok = FALSE +WHERE id in ( + 4, -- Missing + 104, -- Evaluations + 107, -- Display + 112, -- Cleared + 114, -- Workroom + 115, -- For Opening + 103 -- Story Time +); + + +COMMIT; diff --git a/KCLS/sql/schema/sqitch.plan b/KCLS/sql/schema/sqitch.plan index 8ba54230bb..fdb2e1ba09 100644 --- a/KCLS/sql/schema/sqitch.plan +++ b/KCLS/sql/schema/sqitch.plan @@ -33,3 +33,4 @@ audit-table-maint [payflow-hosted-org-settings] 2016-07-22T14:49:08Z Bill Ericks payflow-hosted-static-silent-post-url [payflow-hosted-org-settings] 2016-08-17T13:14:48Z Bill Erickson # Fall back to PP silent post URL teacher-group [student-groups] 2016-09-16T17:43:41Z Bill Erickson # Teach ecard group and policy configs new-headings-report [po-print-li-count-and-date] 2016-01-28T22:23:12Z Bill Erickson # Support for reporting on new browse headings +copy-status-alerts [purge-user-activity] 2016-05-25T14:10:24Z Bill Erickson # Reduce copy checkin alerts by status diff --git a/KCLS/sql/schema/verify/copy-status-alerts.sql b/KCLS/sql/schema/verify/copy-status-alerts.sql new file mode 100644 index 0000000000..dc0421ffcb --- /dev/null +++ b/KCLS/sql/schema/verify/copy-status-alerts.sql @@ -0,0 +1,7 @@ +-- Verify kcls-evergreen:copy-status-alerts on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK;