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
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15230
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<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"/>
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,
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)
);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0123'); -- Scott McKellar
+
+ALTER TABLE acq.fund
+ADD COLUMN rollover BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;