[open-ils-commits] r15473 - 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 Feb 8 14:49:15 EST 2010
Author: scottmk
Date: 2010-02-08 14:49:10 -0500 (Mon, 08 Feb 2010)
New Revision: 15473
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-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" column to acq.provider; bool not null default true.
Related to ticket #2248.
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/0154.schema.provider-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-08 18:32:15 UTC (rev 15472)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-02-08 19:49:10 UTC (rev 15473)
@@ -4357,6 +4357,7 @@
<field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link" />
<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" />
</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-08 18:32:15 UTC (rev 15472)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-08 19:49:10 UTC (rev 15473)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0153'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0154'); -- 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-08 18:32:15 UTC (rev 15472)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-02-08 19:49:10 UTC (rev 15473)
@@ -38,6 +38,7 @@
holding_tag TEXT,
san TEXT,
edi_default INT, -- REFERENCES acq.edi_account (id) DEFERRABLE INITIALLY DEFERRED
+ active BOOL NOT NULL DEFAULT TRUE,
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/0154.schema.provider-active.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-active.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-active.sql 2010-02-08 19:49:10 UTC (rev 15473)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0154'); -- Scott McKellar
+
+ALTER TABLE acq.provider
+ ADD COLUMN active BOOL NOT NULL DEFAULT TRUE;
+
+COMMIT;
More information about the open-ils-commits
mailing list