Added boolean column vendor_public to acq.lineitem_note and acq.po_note.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Mar 2010 14:16:57 +0000 (14:16 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Mar 2010 14:16:57 +0000 (14:16 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15790 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/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql [new file with mode: 0644]

index d27c1e8..8900a68 100644 (file)
@@ -5190,6 +5190,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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>
index 16118ea..7049729 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 ('0186'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0187'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index 873763f..6033197 100644 (file)
@@ -430,7 +430,8 @@ CREATE TABLE acq.po_note (
        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 @@ CREATE TABLE acq.lineitem_note (
        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 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql b/Open-ILS/src/sql/Pg/upgrade/0187.schema.acq.vendor-public.sql
new file mode 100644 (file)
index 0000000..29b770f
--- /dev/null
@@ -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;