Add four columns to action.aged_circulation that were previously
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Sep 2009 20:41:53 +0000 (20:41 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Sep 2009 20:41:53 +0000 (20:41 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14134 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql [new file with mode: 0644]

index b9fa062..79bd435 100644 (file)
@@ -2199,6 +2199,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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">
index e0c0300..ba82fbe 100644 (file)
@@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log (
     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,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql b/Open-ILS/src/sql/Pg/upgrade/0019.schema.action-aged-circ-new-cols.sql
new file mode 100644 (file)
index 0000000..9cb92f6
--- /dev/null
@@ -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;