[open-ils-commits] r15233 - 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
Mon Dec 28 10:53:03 EST 2009
Author: scottmk
Date: 2009-12-28 10:53:00 -0500 (Mon, 28 Dec 2009)
New Revision: 15233
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0124.schema.acq-credit-eff-date.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 an effective_date column to acq.funding_source_credit.
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/0124.schema.acq-credit-eff-date.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-12-23 18:26:24 UTC (rev 15232)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-12-28 15:53:00 UTC (rev 15233)
@@ -4507,6 +4507,7 @@
<field reporter:label="Amount" name="amount" reporter:datatype="money" />
<field reporter:label="Note" name="note" reporter:datatype="text" />
<field reporter:label="Deadline Date" name="deadline_date" reporter:datatype="timestamp" />
+ <field reporter:label="Effective Date" name="effective_date" reporter:datatype="timestamp" />
</fields>
<links>
<link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-12-23 18:26:24 UTC (rev 15232)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-12-28 15:53:00 UTC (rev 15233)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0123'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0124'); -- 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 2009-12-23 18:26:24 UTC (rev 15232)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-12-28 15:53:00 UTC (rev 15233)
@@ -101,7 +101,8 @@
funding_source INT NOT NULL REFERENCES acq.funding_source (id) DEFERRABLE INITIALLY DEFERRED,
amount NUMERIC NOT NULL,
note TEXT,
- deadline_date TIMESTAMPTZ
+ deadline_date TIMESTAMPTZ,
+ effective_date TIMESTAMPTZ NOT NULL default now()
);
CREATE TABLE acq.fund (
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0124.schema.acq-credit-eff-date.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0124.schema.acq-credit-eff-date.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0124.schema.acq-credit-eff-date.sql 2009-12-28 15:53:00 UTC (rev 15233)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0124'); -- Scott McKellar
+
+ALTER TABLE acq.funding_source_credit
+ADD COLUMN effective_date TIMESTAMPTZ NOT NULL DEFAULT now();
+
+COMMIT;
More information about the open-ils-commits
mailing list