[open-ils-commits] r15627 - 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
Wed Feb 24 09:34:34 EST 2010
Author: scottmk
Date: 2010-02-24 09:34:32 -0500 (Wed, 24 Feb 2010)
New Revision: 15627
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.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:
Add fax number, phone, url, email to certain provider-related tables.
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
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-02-23 18:35:20 UTC (rev 15626)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-02-24 14:34:32 UTC (rev 15627)
@@ -4462,6 +4462,10 @@
<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 @@
<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 @@
<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"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-23 18:35:20 UTC (rev 15626)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-24 14:34:32 UTC (rev 15627)
@@ -51,7 +51,7 @@
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,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-02-23 18:35:20 UTC (rev 15626)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-02-24 14:34:32 UTC (rev 15627)
@@ -40,6 +40,10 @@
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 @@
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 @@
county TEXT,
state TEXT NOT NULL,
country TEXT NOT NULL,
- post_code TEXT NOT NULL
+ post_code TEXT NOT NULL,
+ fax_phone TEXT
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0171.schema.acq.provider-phone-email.sql 2010-02-24 14:34:32 UTC (rev 15627)
@@ -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;
More information about the open-ils-commits
mailing list