From 5df9600d298b4111e44a0de2ba3cb85f7d3db48b Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Mon, 10 Nov 2014 20:27:11 -0500 Subject: [PATCH] LP#778989: Stamping upgrade script for copy location trigger Signed-off-by: Ben Shum --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...XXXX.correct_copy_location.sql => 0896.correct_copy_location.sql} | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.correct_copy_location.sql => 0896.correct_copy_location.sql} (94%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 5692c4092d..ffe5cdbeb0 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -91,7 +91,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 ('0895', :eg_version); -- miker/csharp/bshum +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0896', :eg_version); -- tsbere/csharp/bshum CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.correct_copy_location.sql b/Open-ILS/src/sql/Pg/upgrade/0896.correct_copy_location.sql similarity index 94% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.correct_copy_location.sql rename to Open-ILS/src/sql/Pg/upgrade/0896.correct_copy_location.sql index f2d4011a37..a48bb8801d 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.correct_copy_location.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0896.correct_copy_location.sql @@ -1,3 +1,7 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0896', :eg_version); + CREATE OR REPLACE FUNCTION asset.acp_location_fixer() RETURNS TRIGGER AS $$ DECLARE @@ -25,3 +29,4 @@ CREATE TRIGGER acp_location_fixer_trig BEFORE INSERT OR UPDATE OF location, call_number, circ_lib ON asset.copy FOR EACH ROW EXECUTE PROCEDURE asset.acp_location_fixer(); +COMMIT; -- 2.11.0