Add "active" column to acq.provider; bool not null default true.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 8 Feb 2010 19:49:10 +0000 (19:49 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 8 Feb 2010 19:49:10 +0000 (19:49 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15473 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-active.sql [new file with mode: 0644]

index de39fc2..961f049 100644 (file)
@@ -4357,6 +4357,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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"/>
index 6086bcc..f012777 100644 (file)
@@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log (
     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,
index c31e5a0..fe0e8bf 100644 (file)
@@ -38,6 +38,7 @@ CREATE TABLE acq.provider (
     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)
 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-active.sql b/Open-ILS/src/sql/Pg/upgrade/0154.schema.provider-active.sql
new file mode 100644 (file)
index 0000000..3edd2cf
--- /dev/null
@@ -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;