[open-ils-commits] r15429 - 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
Tue Feb 2 09:56:18 EST 2010
Author: scottmk
Date: 2010-02-02 09:56:16 -0500 (Tue, 02 Feb 2010)
New Revision: 15429
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0146.schema.acq.fund-active.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 active flag to acq.fund table. If a fund is not active,
then you shouldn't be able to spend money from it.
See KCLS ticket 4201.
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/0146.schema.acq.fund-active.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-02 01:34:39 UTC (rev 15428)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-02-02 14:56:16 UTC (rev 15429)
@@ -4629,6 +4629,7 @@
<field reporter:label="Code" name="code" reporter:datatype="text" />
<field reporter:label="Rollover" name="rollover" reporter:datatype="bool" />
<field reporter:label="Propagate" name="propagate" reporter:datatype="bool" />
+ <field reporter:label="Active" name="active" 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 2010-02-02 01:34:39 UTC (rev 15428)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-02 14:56:16 UTC (rev 15429)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0145'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0146'); -- 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-02 01:34:39 UTC (rev 15428)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-02-02 14:56:16 UTC (rev 15429)
@@ -171,6 +171,7 @@
code TEXT,
rollover BOOL NOT NULL DEFAULT FALSE,
propagate BOOL NOT NULL DEFAULT TRUE,
+ active BOOL NOT NULL DEFAULT TRUE,
CONSTRAINT name_once_per_org_year UNIQUE (org,name,year),
CONSTRAINT code_once_per_org_year UNIQUE (org, code, year),
CONSTRAINT acq_fund_rollover_implies_propagate CHECK ( propagate OR NOT rollover )
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0146.schema.acq.fund-active.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0146.schema.acq.fund-active.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0146.schema.acq.fund-active.sql 2010-02-02 14:56:16 UTC (rev 15429)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0146'); -- Scott McKellar
+
+ALTER TABLE acq.fund
+ ADD COLUMN active BOOL NOT NULL DEFAULT TRUE;
+
+COMMIT;
More information about the open-ils-commits
mailing list