New column: action.hold_request.shelf_time
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Aug 2009 19:04:18 +0000 (19:04 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Aug 2009 19:04:18 +0000 (19:04 +0000)
For altering an existing table:

ALTER TABLE action.hold_request
ADD COLUMN shelf_time TIMESTAMP WITH TIME ZONE;

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

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

index ef3afef..e61efd5 100644 (file)
@@ -2655,6 +2655,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
                        <field reporter:label="Thaw Date (if frozen)" name="thaw_date" reporter:datatype="timestamp"/>
+                       <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
                        <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
                        <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
                        <field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
index dc6c8bf..0ee639e 100644 (file)
@@ -298,7 +298,8 @@ CREATE TABLE action.hold_request (
        phone_notify            TEXT,
        email_notify            BOOL                            NOT NULL DEFAULT TRUE,
        frozen                  BOOL                            NOT NULL DEFAULT FALSE,
-       thaw_date               TIMESTAMP WITH TIME ZONE
+       thaw_date               TIMESTAMP WITH TIME ZONE,
+       shelf_date              IMESTAMP WITH TIME ZONE
 );
 
 CREATE INDEX hold_request_target_idx ON action.hold_request (target);