[open-ils-commits] r15230 - 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 Dec 23 11:35:20 EST 2009
Author: scottmk
Date: 2009-12-23 11:35:17 -0500 (Wed, 23 Dec 2009)
New Revision: 15230
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0123.schema.acq-fund-rollover.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 a boolean "rollover" column to acq.fund, to denote
which funds are subject to rollover.
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/0123.schema.acq-fund-rollover.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 14:55:56 UTC (rev 15229)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-12-23 16:35:17 UTC (rev 15230)
@@ -4538,6 +4538,7 @@
<field reporter:label="Year" name="year" reporter:datatype="int" />
<field reporter:label="Currency Type" name="currency_type" reporter:datatype="link" />
<field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Rollover" name="rollover" reporter:datatype="bool" />
<field reporter:label="Summary" name="summary" oils_persist:virtual="true"/>
<field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Debits" name="debits" 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 2009-12-23 14:55:56 UTC (rev 15229)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-12-23 16:35:17 UTC (rev 15230)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0122'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0123'); -- 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 14:55:56 UTC (rev 15229)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-12-23 16:35:17 UTC (rev 15230)
@@ -111,6 +111,7 @@
year INT NOT NULL DEFAULT EXTRACT( YEAR FROM NOW() ),
currency_type TEXT NOT NULL REFERENCES acq.currency_type (code) DEFERRABLE INITIALLY DEFERRED,
code TEXT,
+ rollover BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT name_once_per_org_year UNIQUE (org,name,year),
CONSTRAINT code_once_per_org_year UNIQUE (org, code, year)
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0123.schema.acq-fund-rollover.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0123.schema.acq-fund-rollover.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0123.schema.acq-fund-rollover.sql 2009-12-23 16:35:17 UTC (rev 15230)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0123'); -- Scott McKellar
+
+ALTER TABLE acq.fund
+ADD COLUMN rollover BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
More information about the open-ils-commits
mailing list