Add new column checkin_scan_time to action.circulation,
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 18:49:25 +0000 (18:49 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 18:49:25 +0000 (18:49 +0000)
and change IDL accordingly.

For changing an existing table:

ALTER TABLE action.circulation
ADD COLUMN checkin_scan_time TIMESTAMPTZ;

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

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/090.schema.action.sql

index 7a79309..ae30523 100644 (file)
@@ -2077,6 +2077,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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="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"/>
index 8362f6c..284b384 100644 (file)
@@ -129,7 +129,8 @@ CREATE TABLE action.circulation (
                                                                   DEFERRABLE INITIALLY DEFERRED,
        checkin_workstation INT        REFERENCES actor.workstation(id)
                                       ON DELETE SET NULL
-                                                                  DEFERRABLE INITIALLY DEFERRED
+                                                                  DEFERRABLE INITIALLY DEFERRED,
+       checkin_scan_time   TIMESTAMP WITH TIME ZONE
 ) INHERITS (money.billable_xact);
 ALTER TABLE action.circulation ADD PRIMARY KEY (id);
 CREATE INDEX circ_open_xacts_idx ON action.circulation (usr) WHERE xact_finish IS NULL;