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
<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"/>
<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"/>
<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"/>
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,
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)
);
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 (
county TEXT,
state TEXT NOT NULL,
country TEXT NOT NULL,
- post_code TEXT NOT NULL
+ post_code TEXT NOT NULL,
+ fax_phone TEXT
);
--- /dev/null
+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;