From f9159c9de6c2e90c8983d02854c0a3831daf9b1a Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 28 Feb 2018 10:33:50 -0500 Subject: [PATCH] Stamping upgrade scripts for new copy alerts Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- .../{XXXX.schema.copy_alerts.sql => 1095.schema.copy_alerts.sql} | 2 ++ ....stock_copy_alert_types.sql => 1096.data.stock_copy_alert_types.sql} | 2 ++ ...dling.sql => 1097.data.yaous_for_open_circ_exists_fine_handling.sql} | 2 +- ...ove_legacy_copy_alerts.sql => 1098.data.move_legacy_copy_alerts.sql} | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.copy_alerts.sql => 1095.schema.copy_alerts.sql} (98%) rename Open-ILS/src/sql/Pg/upgrade/{YYYY.data.stock_copy_alert_types.sql => 1096.data.stock_copy_alert_types.sql} (98%) rename Open-ILS/src/sql/Pg/upgrade/{ZZZZ.data.yaous_for_open_circ_exists_fine_handling.sql => 1097.data.yaous_for_open_circ_exists_fine_handling.sql} (95%) rename Open-ILS/src/sql/Pg/upgrade/{ZZZA.data.move_legacy_copy_alerts.sql => 1098.data.move_legacy_copy_alerts.sql} (90%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 2a72ffe582..5dd5f78d18 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 ('1094', :eg_version); -- miker/kmlussier +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1098', :eg_version); -- gmcharlt/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_alerts.sql b/Open-ILS/src/sql/Pg/upgrade/1095.schema.copy_alerts.sql similarity index 98% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_alerts.sql rename to Open-ILS/src/sql/Pg/upgrade/1095.schema.copy_alerts.sql index 993b6790b2..ceaba7003f 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_alerts.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1095.schema.copy_alerts.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1095', :eg_version); + CREATE OR REPLACE FUNCTION asset.copy_state (cid BIGINT) RETURNS TEXT AS $$ DECLARE last_circ_stop TEXT; diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.stock_copy_alert_types.sql b/Open-ILS/src/sql/Pg/upgrade/1096.data.stock_copy_alert_types.sql similarity index 98% rename from Open-ILS/src/sql/Pg/upgrade/YYYY.data.stock_copy_alert_types.sql rename to Open-ILS/src/sql/Pg/upgrade/1096.data.stock_copy_alert_types.sql index ae79a9ca13..4a91997219 100644 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.stock_copy_alert_types.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1096.data.stock_copy_alert_types.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1096', :eg_version); + -- staff-usable alert types with no location awareness INSERT INTO config.copy_alert_type (id, scope_org, active, name, state, event, in_renew) VALUES (1, 1, TRUE, 'Normal checkout', 'NORMAL', 'CHECKOUT', FALSE); diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.yaous_for_open_circ_exists_fine_handling.sql b/Open-ILS/src/sql/Pg/upgrade/1097.data.yaous_for_open_circ_exists_fine_handling.sql similarity index 95% rename from Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.yaous_for_open_circ_exists_fine_handling.sql rename to Open-ILS/src/sql/Pg/upgrade/1097.data.yaous_for_open_circ_exists_fine_handling.sql index 4235527112..d3a706d4ee 100644 --- a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.yaous_for_open_circ_exists_fine_handling.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1097.data.yaous_for_open_circ_exists_fine_handling.sql @@ -1,6 +1,6 @@ BEGIN; ---- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); +SELECT evergreen.upgrade_deps_block_check('1097', :eg_version); INSERT INTO config.org_unit_setting_type (name, grp, label, description, datatype) diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZA.data.move_legacy_copy_alerts.sql b/Open-ILS/src/sql/Pg/upgrade/1098.data.move_legacy_copy_alerts.sql similarity index 90% rename from Open-ILS/src/sql/Pg/upgrade/ZZZA.data.move_legacy_copy_alerts.sql rename to Open-ILS/src/sql/Pg/upgrade/1098.data.move_legacy_copy_alerts.sql index f430cbfb45..fa7fa0c41e 100644 --- a/Open-ILS/src/sql/Pg/upgrade/ZZZA.data.move_legacy_copy_alerts.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1098.data.move_legacy_copy_alerts.sql @@ -1,6 +1,6 @@ BEGIN; ---- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); +SELECT evergreen.upgrade_deps_block_check('1098', :eg_version); \qecho Copying copy alert messages to normal checkout copy alerts... INSERT INTO asset.copy_alert (alert_type, copy, note, create_staff) -- 2.11.0