[open-ils-commits] r15790 - 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
Thu Mar 11 09:16:59 EST 2010
Author: scottmk
Date: 2010-03-11 09:16:57 -0500 (Thu, 11 Mar 2010)
New Revision: 15790
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Added boolean column vendor_public to acq.lineitem_note and acq.po_note.
M Open-ILS/src/sql/Pg/200.schema.acq.sql
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-03-11 14:10:52 UTC (rev 15789)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-03-11 14:16:57 UTC (rev 15790)
@@ -5190,6 +5190,7 @@
<field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
<field reporter:label="Editor" name="editor" reporter:datatype="link" />
<field reporter:label="Vote Value" name="value" reporter:datatype="text" />
+ <field reporter:label="Vendor Public" name="vendor_public" reporter:datatype="bool" />
</fields>
<links>
<link field="creator" reltype="has_a" key="id" map="" class="au"/>
@@ -5330,6 +5331,7 @@
<field reporter:label="Editor" name="editor" reporter:datatype="link" />
<field reporter:label="Note Value" name="value" reporter:datatype="text" />
<field reporter:label="Alert Text" name="alert_text" reporter:datatype="link" />
+ <field reporter:label="Vendor Public" name="vendor_public" reporter:datatype="bool" />
</fields>
<links>
<link field="creator" reltype="has_a" key="id" map="" class="au"/>
@@ -6228,10 +6230,10 @@
<field reporter:label="On Clause ID" name="on_clause" reporter:datatype="link"/>
</fields>
<links>
- <link field="subquery" reltype="might_have" key="id" map="" class="qsq"/>
- <link field="function_call" reltype="might_have" key="id" map="" class="qxp"/>
- <link field="parent_relation" reltype="might_have" key="id" map="" class="qfr"/>
- <link field="on_clause" reltype="might_have" key="id" map="" class="qxp"/>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="function_call" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="parent_relation" reltype="has_a" key="id" map="" class="qfr"/>
+ <link field="on_clause" reltype="has_a" key="id" map="" class="qxp"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
</permacrud>
@@ -6293,7 +6295,7 @@
<field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
</fields>
<links>
- <link field="parent_expr" reltype="might_have" key="id" map="" class="qxp"/>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
</permacrud>
@@ -6308,7 +6310,7 @@
<field reporter:label="Literal" name="literal" reporter:datatype="text"/>
</fields>
<links>
- <link field="parent_expr" reltype="might_have" key="id" map="" class="qxp"/>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
</permacrud>
@@ -6322,7 +6324,7 @@
<field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
</fields>
<links>
- <link field="parent_expr" reltype="might_have" key="id" map="" class="qxp"/>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
</permacrud>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-11 14:10:52 UTC (rev 15789)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-11 14:16:57 UTC (rev 15790)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0186'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0187'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-03-11 14:10:52 UTC (rev 15789)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-03-11 14:16:57 UTC (rev 15790)
@@ -430,7 +430,8 @@
editor INT NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED,
create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
edit_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- value TEXT NOT NULL
+ value TEXT NOT NULL,
+ vendor_public BOOLEAN NOT NULL DEFAULT FALSE
);
CREATE INDEX po_note_po_idx ON acq.po_note (purchase_order);
CREATE INDEX acq_po_note_creator_idx ON acq.po_note ( creator );
@@ -482,7 +483,8 @@
edit_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
value TEXT NOT NULL,
alert_text INT REFERENCES acq.lineitem_alert_text(id)
- DEFERRABLE INITIALLY DEFERRED
+ DEFERRABLE INITIALLY DEFERRED,
+ vendor_public BOOLEAN NOT NULL DEFAULT FALSE
);
CREATE INDEX li_note_li_idx ON acq.lineitem_note (lineitem);
CREATE INDEX li_note_creator_idx ON acq.lineitem_note ( creator );
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql 2010-03-11 14:16:57 UTC (rev 15790)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0187'); -- Scott McKellar
+
+ALTER TABLE acq.po_note
+ ADD COLUMN vendor_public BOOLEAN NOT NULL DEFAULT FALSE;
+
+ALTER TABLE acq.lineitem_note
+ ADD COLUMN vendor_public BOOLEAN NOT NULL DEFAULT FALSE;
+
+COMMIT;
More information about the open-ils-commits
mailing list