[open-ils-commits] r14025 - in trunk/Open-ILS/src/sql/Pg: . upgrade_1.6_trunk (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 15 12:53:47 EDT 2009


Author: erickson
Date: 2009-09-15 12:53:44 -0400 (Tue, 15 Sep 2009)
New Revision: 14025

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade_1.6_trunk/
   trunk/Open-ILS/src/sql/Pg/upgrade_1.6_trunk/0001.data.config.org_unit_setting_type.sql
Log:

Initial stab at modeling database changes as atomic mini-scripts for ease of development and eventual automatic upgrades
Created new upgrade directory for the 1.6 to trunk upgrade path.



Added: trunk/Open-ILS/src/sql/Pg/upgrade_1.6_trunk/0001.data.config.org_unit_setting_type.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade_1.6_trunk/0001.data.config.org_unit_setting_type.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade_1.6_trunk/0001.data.config.org_unit_setting_type.sql	2009-09-15 16:53:44 UTC (rev 14025)
@@ -0,0 +1,29 @@
+BEGIN;
+
+-- Org Unit Settings for configuring org unit weights and org unit max-loops for hold targeting
+
+INSERT INTO config.upgrade_log (version) VALUES ('0001.data.config.org_unit_setting_type.sql');
+
+INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
+    'circ.holds.org_unit_target_weight',
+    'Holds: Org Unit Target Weight',
+    'Org Units can be organized into hold target groups based on a weight.  Potential copies from org units with the same weight are chosen at random.',
+    'integer'
+);
+
+INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
+    'circ.holds.target_holds_by_org_unit_weight',
+    'Holds: Use weight-based hold targeting',
+    'Use library weight based hold targeting',
+    'bool'
+);
+
+INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
+    'circ.holds.max_org_unit_target_loops',
+    'Holds: Maximum library target attempts',
+    'When this value is set and greater than 0, the system will only attempt to find a copy at each possible branch the configured number of times',
+    'integer'
+);
+
+COMMIT;
+



More information about the open-ils-commits mailing list