[open-ils-commits] r15563 - 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 Feb 17 09:22:57 EST 2010
Author: scottmk
Date: 2010-02-17 09:22:56 -0500 (Wed, 17 Feb 2010)
New Revision: 15563
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.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 column prepayment_required to acq.provider.
See KCLS ticket 2249.
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/0163.schema.acq.provider-prepayment-required.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-16 21:50:59 UTC (rev 15562)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-02-17 14:22:56 UTC (rev 15563)
@@ -4459,6 +4459,7 @@
<field reporter:label="SAN" name="san" reporter:datatype="text" />
<field reporter:label="EDI Default" name="edi_default" reporter:datatype="link" />
<field reporter:label="Active" name="active" reporter:datatype="bool" />
+ <field reporter:label="Prepayment Required" name="prepayment_required" reporter:datatype="bool" />
</fields>
<links>
<link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-16 21:50:59 UTC (rev 15562)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-17 14:22:56 UTC (rev 15563)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0162'); --miker
+INSERT INTO config.upgrade_log (version) VALUES ('0163'); --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-16 21:50:59 UTC (rev 15562)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-02-17 14:22:56 UTC (rev 15563)
@@ -39,6 +39,7 @@
san TEXT,
edi_default INT, -- REFERENCES acq.edi_account (id) DEFERRABLE INITIALLY DEFERRED
active BOOL NOT NULL DEFAULT TRUE,
+ prepayment_required BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner),
CONSTRAINT code_once_per_owner UNIQUE (code, owner)
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql 2010-02-17 14:22:56 UTC (rev 15563)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0163'); -- Scott McKellar
+
+ALTER TABLE acq.provider
+ ADD COLUMN prepayment_required BOOLEAN NOT NULL DEFAULT FALSE;
+
+COMMIT;
More information about the open-ils-commits
mailing list