[open-ils-commits] r13403 - in trunk/Open-ILS: examples src/sql/Pg (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 18 17:06:52 EDT 2009
Author: scottmk
Date: 2009-06-18 17:06:48 -0400 (Thu, 18 Jun 2009)
New Revision: 13403
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
Log:
Add table action.hold_request_note, class "ahrn"
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-06-18 18:00:36 UTC (rev 13402)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-06-18 21:06:48 UTC (rev 13403)
@@ -2662,6 +2662,19 @@
<link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
</links>
</class>
+ <class id="ahrn" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_request_note" oils_persist:tablename="action.hold_request_note" reporter:label="Hold Request Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_note_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Body" name="body" reporter:datatype="text"/>
+ <field reporter:label="Slip?" name="slip" reporter:datatype="bool"/>
+ <field reporter:label="Pub?" name="pub" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ </links>
+ </class>
<class id="aou" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit" oils_persist:tablename="actor.org_unit" reporter:label="Organizational Unit" oils_persist:field_safe="true">
<fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
<field reporter:label="Subordinate Organizational Units" name="children" oils_persist:virtual="true" reporter:datatype="org_unit"/>
Modified: trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-06-18 18:00:36 UTC (rev 13402)
+++ trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-06-18 21:06:48 UTC (rev 13403)
@@ -296,6 +296,21 @@
CREATE INDEX hold_request_prev_check_time_idx ON action.hold_request (prev_check_time);
+CREATE TABLE action.hold_request_note (
+
+ id BIGSERIAL PRIMARY KEY,
+ hold BIGINT NOT NULL REFERENCES action.hold_request (id)
+ ON DELETE CASCADE
+ DEFERRABLE INITIALLY DEFERRED,
+ title TEXT NOT NULL,
+ body TEXT NOT NULL,
+ slip BOOL NOT NULL DEFAULT FALSE,
+ pub BOOL NOT NULL DEFAULT FALSE
+
+);
+CREATE INDEX ahrn_hold_idx ON action.hold_request_note (hold);
+
+
CREATE TABLE action.hold_notification (
id SERIAL PRIMARY KEY,
hold INT NOT NULL REFERENCES action.hold_request (id) DEFERRABLE INITIALLY DEFERRED,
More information about the open-ils-commits
mailing list