Add a boolean column prepayment_required to acq.provider.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Feb 2010 14:22:56 +0000 (14:22 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Feb 2010 14:22:56 +0000 (14:22 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15563 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/0163.schema.acq.provider-prepayment-required.sql [new file with mode: 0644]

index 06d21d7..f139592 100644 (file)
@@ -4459,6 +4459,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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"/>
index ceb3e8c..4f5fe08 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 ('0162'); --miker
+INSERT INTO config.upgrade_log (version) VALUES ('0163'); --Scott McKellar
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index eaf9628..97b1fd5 100644 (file)
@@ -39,6 +39,7 @@ CREATE TABLE acq.provider (
     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)
 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql b/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql
new file mode 100644 (file)
index 0000000..cb89217
--- /dev/null
@@ -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;