[open-ils-commits] r16160 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 7 15:40:41 EDT 2010
Author: scottmk
Date: 2010-04-07 15:40:36 -0400 (Wed, 07 Apr 2010)
New Revision: 16160
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0229.schema.acq-inv-item-fund.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Add fund column to acq.invoice_item.
M Open-ILS/src/sql/Pg/200.schema.acq.sql
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0229.schema.acq-inv-item-fund.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-04-07 19:36:51 UTC (rev 16159)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-04-07 19:40:36 UTC (rev 16160)
@@ -4702,12 +4702,14 @@
<field reporter:label="Note" name="note" reporter:datatype="text" />
<field reporter:label="Cost Billed" name="cost_billed" reporter:datatype="money" />
<field reporter:label="Actual Cost" name="actual_cost" reporter:datatype="money" />
+ <field reporter:label="Fund" name="fund" reporter:datatype="link" />
</fields>
<links>
<link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
<link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
<link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
<link field="inv_item_type" reltype="has_a" key="code" map="" class="aiit"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-07 19:36:51 UTC (rev 16159)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-07 19:40:36 UTC (rev 16160)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0229'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-07 19:36:51 UTC (rev 16159)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-07 19:40:36 UTC (rev 16160)
@@ -825,7 +825,9 @@
author TEXT,
note TEXT,
cost_billed NUMERIC(8,2),
- actual_cost NUMERIC(8,2)
+ actual_cost NUMERIC(8,2),
+ fund INT REFERENCES acq.fund (id)
+ DEFERRABLE INITIALLY DEFERRED
);
-- Patron requests
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0229.schema.acq-inv-item-fund.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0229.schema.acq-inv-item-fund.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0229.schema.acq-inv-item-fund.sql 2010-04-07 19:40:36 UTC (rev 16160)
@@ -0,0 +1,10 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0229'); -- Scott McKellar
+
+ALTER TABLE acq.invoice_item
+ ADD COLUMN FUND INT
+ REFERENCES acq.fund (id)
+ DEFERRABLE INITIALLY DEFERRED;
+
+COMMIT;
More information about the open-ils-commits
mailing list