Patch from Don McMorris. Good catch, Don.
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Jun 2010 21:34:49 +0000 (21:34 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Jun 2010 21:34:49 +0000 (21:34 +0000)
commit6584db99b06bb13e12b68a8e960574772c820a7d
tree7f5961ee3e7ac72a403187c87a05dea3171fa0e4
parent7ddceab2951e68d4caa7421a04f7ce35e26edbf2
Patch from Don McMorris. Good catch, Don.

He writes:

    In the branch rel_1_6 version of 950.data.seed-values.sql [1], lines
    138-142 create the OU setting
    'circ.booking_reservation.default_elbow_room' via the query:

    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"'
           );

    However, it appears that actor.org_unit does not start to get
    populated until line 853.  As such, the "SELECT id FROM actor.org_unit
    WHERE parent_ou IS NULL" portion of the insert will return NULL, and
    actor.org_unit_setting.org_unit has a 'NOT NULL' contraint - as such,
    the insert fails.

    [...]

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16825 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/sql/Pg/950.data.seed-values.sql