From: miker Date: Thu, 13 Mar 2008 01:10:46 +0000 (+0000) Subject: adding owning_lib and location to lineitem_detail X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8eb1e533273937339350656a107c19d7149cc091;p=Evergreen.git adding owning_lib and location to lineitem_detail git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8996 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 83ce8e75d8..e5f26cd6b0 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2740,12 +2740,16 @@ + + + + diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index 57efd7f3a2..1c3600f2a6 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -152,9 +152,11 @@ CREATE TABLE acq.lineitem_detail ( lineitem INT NOT NULL REFERENCES acq.lineitem (id), fund INT REFERENCES acq.fund (id), fund_debit INT REFERENCES acq.fund_debit (id), - eg_copy_id BIGINT REFERENCES asset.copy (id), + eg_copy_id BIGINT REFERENCES asset.copy (id) ON DELETE SET NULL, barcode TEXT, cn_label TEXT, + owning_lib INT REFERENCES actor.org_unit (id) ON DELETE SET NULL, + location INT REFERENCES asset.copy_location (id) ON DELETE SET NULL, recv_time TIMESTAMP WITH TIME ZONE );