[open-ils-commits] r14134 - 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 Sep 23 16:41:58 EDT 2009
Author: scottmk
Date: 2009-09-23 16:41:53 -0400 (Wed, 23 Sep 2009)
New Revision: 14134
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
Add four columns to action.aged_circulation that were previously
added to action.circulation.
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-09-23 18:49:34 UTC (rev 14133)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-09-23 20:41:53 UTC (rev 14134)
@@ -2199,6 +2199,10 @@
<field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
<field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
<field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Workstation" name="workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Workstation" name="checkin_workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Scan Date/Time" name="checkin_scan_time" reporter:datatype="timestamp" />
+ <field reporter:label="Parent Circulation" name="parent_circ" reporter:datatype="link"/>
<field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
@@ -2234,6 +2238,10 @@
<link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
<link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
<link field="copy_bib_record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="parent_circ" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="renewals" reltype="has_many" key="parent_circ" map="" class="circ"/>
</links>
</class>
<class id="ccnbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item" oils_persist:tablename="container.call_number_bucket_item" reporter:label="Call Number Bucket Item">
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-09-23 18:49:34 UTC (rev 14133)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-09-23 20:41:53 UTC (rev 14134)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0018'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0019'); -- mck9
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql 2009-09-23 20:41:53 UTC (rev 14134)
@@ -0,0 +1,17 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0019');
+
+ALTER TABLE action.aged_circulation
+ADD COLUMN workstation INT;
+
+ALTER TABLE action.aged_circulation
+ADD COLUMN checkin_workstation INT;
+
+ALTER TABLE action.aged_circulation
+ADD COLUMN checkin_scan_time TIMESTAMPTZ;
+
+ALTER TABLE action.aged_circulation
+ADD COLUMN parent_circ BIGINT;
+
+COMMIT;
More information about the open-ils-commits
mailing list