From: Galen Charlton Date: Fri, 13 Aug 2021 22:03:50 +0000 (-0400) Subject: LP#1895052: stamp schema update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ef73f4befdf2291418d5c0a7cd514d166a8d17a7;p=Evergreen.git LP#1895052: stamp schema update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 13ad46b86c..84c6325902 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 ('1279', :eg_version); -- JBoyer/terranm/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1280', :eg_version); -- miker/Dyrcona/amundson/gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1280.data.stalling-YAOUS.sql b/Open-ILS/src/sql/Pg/upgrade/1280.data.stalling-YAOUS.sql new file mode 100644 index 0000000000..e9407fd36f --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1280.data.stalling-YAOUS.sql @@ -0,0 +1,30 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1280', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = $$How long to wait before allowing opportunistic capture of holds with a pickup library other than the context item's circulating library$$ -- ' vim + WHERE name = 'circ.hold_stalling.soft'; + +INSERT into config.org_unit_setting_type +( name, grp, label, description, datatype, fm_class ) VALUES +( 'circ.pickup_hold_stalling.soft', + 'holds', + 'Pickup Library Soft stalling interval', + 'When set for the pickup library, this specifies that for holds with a request time age smaller than this interval only items scanned at the pickup library can be opportunistically captured. Example "5 days". This setting takes precedence over "Soft stalling interval" (circ.hold_stalling.soft) when the interval is in force.', + 'interval', + null +); + +INSERT into config.org_unit_setting_type +( name, grp, label, description, datatype, fm_class ) VALUES +( 'circ.pickup_hold_stalling.hard', + 'holds', + 'Pickup Library Hard stalling interval', + 'When set for the pickup library, this specifies that no items with a calculated proximity greater than 0 from the pickup library can be directly targeted for this time period if there are local available copies. Example "3 days".', + 'interval', + null +); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.stalling-YAOUS.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.stalling-YAOUS.sql deleted file mode 100644 index 32f6439dac..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.stalling-YAOUS.sql +++ /dev/null @@ -1,30 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE config.org_unit_setting_type - SET description = $$How long to wait before allowing opportunistic capture of holds with a pickup library other than the context item's circulating library$$ -- ' vim - WHERE name = 'circ.hold_stalling.soft'; - -INSERT into config.org_unit_setting_type -( name, grp, label, description, datatype, fm_class ) VALUES -( 'circ.pickup_hold_stalling.soft', - 'holds', - 'Pickup Library Soft stalling interval', - 'When set for the pickup library, this specifies that for holds with a request time age smaller than this interval only items scanned at the pickup library can be opportunistically captured. Example "5 days". This setting takes precedence over "Soft stalling interval" (circ.hold_stalling.soft) when the interval is in force.', - 'interval', - null -); - -INSERT into config.org_unit_setting_type -( name, grp, label, description, datatype, fm_class ) VALUES -( 'circ.pickup_hold_stalling.hard', - 'holds', - 'Pickup Library Hard stalling interval', - 'When set for the pickup library, this specifies that no items with a calculated proximity greater than 0 from the pickup library can be directly targeted for this time period if there are local available copies. Example "3 days".', - 'interval', - null -); - -COMMIT; -