[open-ils-commits] r16833 - trunk/Open-ILS/src/sql/Pg (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 29 17:55:57 EDT 2010
Author: senator
Date: 2010-06-29 17:55:51 -0400 (Tue, 29 Jun 2010)
New Revision: 16833
Modified:
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Booking: thinko: default value for an org_unit_setting has to come after
the org_unit_setting_type is defined
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-06-29 21:51:34 UTC (rev 16832)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-06-29 21:55:51 UTC (rev 16833)
@@ -952,17 +952,6 @@
UPDATE actor.org_unit SET holds_address = 1, ill_address = 1, billing_address = 1, mailing_address = 1;
--- In booking, elbow room defines:
--- a) how far in the future you must make a reservation on a given item if
--- that item will have to transit somewhere to fulfill the reservation.
--- b) how soon a reservation must be starting for the reserved item to
--- be op-captured by the checkin interface.
-INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
- (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
- 'circ.booking_reservation.default_elbow_room',
- '"1 day"'
-);
-
INSERT INTO config.billing_type (id, name, owner) VALUES
( 1, oils_i18n_gettext(1, 'Overdue Materials', 'cbt', 'name'), 1);
INSERT INTO config.billing_type (id, name, owner) VALUES
@@ -2148,6 +2137,17 @@
'interval'
);
+-- *** Has to go below coust definition to satisfy referential integrity ***
+-- In booking, elbow room defines:
+-- a) how far in the future you must make a reservation on a given item if
+-- that item will have to transit somewhere to fulfill the reservation.
+-- b) how soon a reservation must be starting for the reserved item to
+-- be op-captured by the checkin interface.
+INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
+ (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
+ 'circ.booking_reservation.default_elbow_room',
+ '"1 day"'
+);
-- Org_unit_setting_type(s) that need an fm_class:
INSERT into config.org_unit_setting_type
More information about the open-ils-commits
mailing list