[open-ils-commits] r15259 - 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
Mon Jan 4 11:51:21 EST 2010
Author: scottmk
Date: 2010-01-04 11:51:18 -0500 (Mon, 04 Jan 2010)
New Revision: 15259
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0129.schema.fund-transfer-credit.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 a new column funding_source_credit to the acq.fund_transfer table.
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/0129.schema.fund-transfer-credit.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-01-04 15:51:06 UTC (rev 15258)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-01-04 16:51:18 UTC (rev 15259)
@@ -4436,11 +4436,13 @@
<field reporter:label="Transfer Time" name="transfer_time" reporter:datatype="timestamp"/>
<field reporter:label="Transfer User" name="transfer_user" reporter:datatype="link"/>
<field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Funding Source Credit ID" name="funding_source_credit" reporter:datatype="link"/>
</fields>
<links>
<link field="src_fund" reltype="has_a" key="id" map="" class="acqf"/>
<link field="dest_fund" reltype="has_a" key="id" map="" class="acqf"/>
<link field="transfer_user" reltype="has_a" key="id" map="" class="au"/>
+ <link field="funding_source_credit" reltype="has_a" key="id" map="" class="acqfscred"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
</permacrud>
@@ -6044,7 +6046,7 @@
</permacrud>
</class>
- <class id="cmpcsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_physical_characteristic_value_map" oils_persist:tablename="config.marc21_physical_characteristic_value_map" reporter:label="MARC21 Physical Characteristic Value Map" oils_persist:field_safe="true">
+ <class id="cmpcvm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_physical_characteristic_value_map" oils_persist:tablename="config.marc21_physical_characteristic_value_map" reporter:label="MARC21 Physical Characteristic Value Map" oils_persist:field_safe="true">
<fields oils_persist:primary="id" oils_persist:sequence="config.marc21_physical_characteristic_value_map_id_seq">
<field reporter:label="ID" name="id" reporter:datatype="id"/>
<field reporter:label="Value" name="value" reporter:datatype="text"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-01-04 15:51:06 UTC (rev 15258)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-01-04 16:51:18 UTC (rev 15259)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0128'); -- berick
+INSERT INTO config.upgrade_log (version) VALUES ('0129'); -- 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-01-04 15:51:06 UTC (rev 15258)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-01-04 16:51:18 UTC (rev 15259)
@@ -482,7 +482,9 @@
transfer_time TIMESTAMPTZ NOT NULL DEFAULT now(),
transfer_user INT NOT NULL REFERENCES actor.usr( id )
DEFERRABLE INITIALLY DEFERRED,
- note TEXT
+ note TEXT,
+ funding_source_credit INT NOT NULL REFERENCES acq.funding_source_credit( id )
+ DEFERRABLE INITIALLY DEFERRED
);
CREATE INDEX acqftr_usr_idx
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0129.schema.fund-transfer-credit.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0129.schema.fund-transfer-credit.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0129.schema.fund-transfer-credit.sql 2010-01-04 16:51:18 UTC (rev 15259)
@@ -0,0 +1,10 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0129'); -- Scott McKellar
+
+ALTER TABLE acq.fund_transfer
+ADD COLUMN funding_source_credit INTEGER NOT NULL
+ REFERENCES acq.funding_source_credit(id)
+ DEFERRABLE INITIALLY DEFERRED;
+
+COMMIT;
More information about the open-ils-commits
mailing list