Stamping follow-up upgrade script for copy alerts
authorMike Rylander <mrylander@gmail.com>
Wed, 28 Feb 2018 16:28:48 +0000 (11:28 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 28 Feb 2018 16:28:48 +0000 (11:28 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1099.data.more-copy-alerts-active-by-default.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/ZZZB.data.more-copy-alerts-active-by-default.sql [deleted file]

index 5dd5f78..491f3bb 100644 (file)
@@ -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 (file)
index 0000000..afddf26
--- /dev/null
@@ -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 (file)
index 520ddc3..0000000
+++ /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;