<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>
</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"/>
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,
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
--- /dev/null
+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;