[open-ils-commits] r15696 - 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 4 12:42:05 EST 2010
Author: scottmk
Date: 2010-03-04 12:42:02 -0500 (Thu, 04 Mar 2010)
New Revision: 15696
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0176.schema.acq.claim_interval.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 two columns, both intervals, both nullable:
acq.provider.default_claim_interval
acq.lineitem.claim_interval
See KCLS ticket #3012.
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/0176.schema.acq.claim_interval.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-04 16:19:14 UTC (rev 15695)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-03-04 17:42:02 UTC (rev 15696)
@@ -4466,6 +4466,7 @@
<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" />
+ <field reporter:label="Default Claim Interval" name="default_claim_interval" reporter:datatype="interval" />
</fields>
<links>
<link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
@@ -5188,6 +5189,7 @@
<field reporter:label="State" name="state" reporter:datatype="text" />
<field reporter:label="Creator" name="creator" reporter:datatype="link" />
<field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Claim Interval" name="claim_interval" reporter:datatype="interval" />
<field reporter:label="Item Count" name="item_count" oils_persist:virtual="true" reporter:datatype="int" />
<field reporter:label="Descriptive Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link" />
<field reporter:label="Line Item Details" name="lineitem_details" oils_persist:virtual="true" reporter:datatype="link" />
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-04 16:19:14 UTC (rev 15695)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-04 17:42:02 UTC (rev 15696)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0175'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0176'); -- 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-04 16:19:14 UTC (rev 15695)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-03-04 17:42:02 UTC (rev 15696)
@@ -44,6 +44,7 @@
email TEXT,
phone TEXT,
fax_phone TEXT,
+ default_claim_interval INTERVAL,
CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner),
CONSTRAINT code_once_per_owner UNIQUE (code, owner)
);
@@ -433,6 +434,7 @@
eg_bib_id INT REFERENCES biblio.record_entry (id) DEFERRABLE INITIALLY DEFERRED,
source_label TEXT,
state TEXT NOT NULL DEFAULT 'new',
+ claim_interval INTERVAL,
CONSTRAINT picklist_or_po CHECK (picklist IS NOT NULL OR purchase_order IS NOT NULL)
);
CREATE INDEX li_po_idx ON acq.lineitem (purchase_order);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0176.schema.acq.claim_interval.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0176.schema.acq.claim_interval.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0176.schema.acq.claim_interval.sql 2010-03-04 17:42:02 UTC (rev 15696)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0176'); -- Scott McKellar
+
+ALTER TABLE acq.provider
+ ADD COLUMN default_claim_interval INTERVAL;
+
+ALTER TABLE acq.lineitem
+ ADD COLUMN claim_interval INTERVAL;
+
+COMMIT;
More information about the open-ils-commits
mailing list