Add fax number, phone, url, email to certain provider-related tables.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 14:34:32 +0000 (14:34 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 14:34:32 +0000 (14:34 +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/0171.schema.acq.provider-phone-email.sql
M    Open-ILS/examples/fm_IDL.xml

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15627 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/0171.schema.acq.provider-phone-email.sql [new file with mode: 0644]

index 23b77c9..a690a8d 100644 (file)
@@ -4462,6 +4462,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="EDI Default" name="edi_default" reporter:datatype="link" />
                        <field reporter:label="Active" name="active" reporter:datatype="bool" />
                        <field reporter:label="Prepayment Required" name="prepayment_required" reporter:datatype="bool" />
+                       <field reporter:label="URL" name="url" reporter:datatype="text" />
+                       <field reporter:label="Email" name="email" reporter:datatype="text" />
+                       <field reporter:label="Phone" name="phone" reporter:datatype="text" />
+                       <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text" />
                </fields>
                <links>
                        <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
@@ -4591,6 +4595,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Street 1" name="street1"  reporter:datatype="text"/>
                        <field reporter:label="Street 2" name="street2"  reporter:datatype="text"/>
                        <field reporter:label="Is Valid?" name="valid" reporter:datatype="bool"/>
+                       <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text"/>
                </fields>
                <links>
                        <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
@@ -4655,6 +4660,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Street (2)" name="street2"  reporter:datatype="text"/>
                        <field reporter:label="Contact" name="contact" reporter:datatype="link"/>
                        <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
+                       <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text"/>
                </fields>
                <links>
                        <link field="contact" reltype="has_a" key="id" map="" class="acqpc"/>
index 1610013..4a71492 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 ('0170'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0171'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index 97b1fd5..9e966b1 100644 (file)
@@ -40,6 +40,10 @@ CREATE TABLE acq.provider (
     edi_default         INT,          -- REFERENCES acq.edi_account (id) DEFERRABLE INITIALLY DEFERRED
        active              BOOL    NOT NULL DEFAULT TRUE,
        prepayment_required BOOL    NOT NULL DEFAULT FALSE,
+    url                 TEXT,
+    email               TEXT,
+    phone               TEXT,
+    fax_phone           TEXT,
     CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner),
        CONSTRAINT code_once_per_owner UNIQUE (code, owner)
 );
@@ -63,7 +67,8 @@ CREATE TABLE acq.provider_address (
        county          TEXT,
        state           TEXT    NOT NULL,
        country         TEXT    NOT NULL,
-       post_code       TEXT    NOT NULL
+       post_code       TEXT    NOT NULL,
+       fax_phone       TEXT    NOT NULL
 );
 
 CREATE TABLE acq.provider_contact (
@@ -86,7 +91,8 @@ CREATE TABLE acq.provider_contact_address (
        county                  TEXT,
        state                   TEXT    NOT NULL,
        country                 TEXT    NOT NULL,
-       post_code               TEXT    NOT NULL
+       post_code               TEXT    NOT NULL,
+       fax_phone               TEXT
 );
 
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.sql b/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.sql
new file mode 100644 (file)
index 0000000..5a0a1b4
--- /dev/null
@@ -0,0 +1,23 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0171'); -- Scott McKellar
+
+ALTER TABLE acq.provider_address
+       ADD COLUMN fax_phone TEXT;
+
+ALTER TABLE acq.provider_contact_address
+       ADD COLUMN fax_phone TEXT;
+
+ALTER TABLE acq.provider
+       ADD COLUMN url TEXT;
+
+ALTER TABLE acq.provider
+       ADD COLUMN email TEXT;
+
+ALTER TABLE acq.provider
+       ADD COLUMN phone TEXT;
+
+ALTER TABLE acq.provider
+       ADD COLUMN fax_phone TEXT;
+
+COMMIT;