From: Bill Erickson Date: Mon, 25 Jul 2011 21:24:13 +0000 (-0400) Subject: Stamped upgrade script for checkout_fills_related_hold_exact_match X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=63cdb5ec73cb4d7c31852f5c3665ac6d17b6a711;p=evergreen%2Fmasslnc.git Stamped upgrade script for checkout_fills_related_hold_exact_match Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index cb783e2134..7984118747 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0584', :eg_version); -- phasefx/berick +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0585', :eg_version); -- tsbere/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0585.checkout_fills_related_hold_exact_match.sql b/Open-ILS/src/sql/Pg/upgrade/0585.checkout_fills_related_hold_exact_match.sql new file mode 100644 index 0000000000..611a2b058d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0585.checkout_fills_related_hold_exact_match.sql @@ -0,0 +1,13 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0585', :eg_version); + +INSERT into config.org_unit_setting_type +( name, label, description, datatype ) VALUES +( 'circ.checkout_fills_related_hold_exact_match_only', + 'Checkout Fills Related Hold On Valid Copy Only', + 'When filling related holds on checkout only match on items that are valid for opportunistic capture for the hold. Without this set a Title or Volume hold could match when the item is not holdable. With this set only holdable items will match.', + 'bool'); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.checkout_fills_related_hold_exact_match.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.checkout_fills_related_hold_exact_match.sql deleted file mode 100644 index c720e36486..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.checkout_fills_related_hold_exact_match.sql +++ /dev/null @@ -1,6 +0,0 @@ -INSERT into config.org_unit_setting_type -( name, label, description, datatype ) VALUES -( 'circ.checkout_fills_related_hold_exact_match_only', - 'Checkout Fills Related Hold On Valid Copy Only', - 'When filling related holds on checkout only match on items that are valid for opportunistic capture for the hold. Without this set a Title or Volume hold could match when the item is not holdable. With this set only holdable items will match.', - 'bool');