From 6a398f7eecae6dbdbba54c66b7089ae928b18170 Mon Sep 17 00:00:00 2001 From: scottmk Date: Wed, 17 Feb 2010 14:22:56 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@15563 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/fm_IDL.xml | 1 + Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/200.schema.acq.sql | 1 + .../Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql | 8 ++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 06d21d7a1..f13959264 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -4459,6 +4459,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index ceb3e8c33..4f5fe084a 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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, diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index eaf962859..97b1fd563 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -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 index 000000000..cb89217fb --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0163.schema.acq.provider-prepayment-required.sql @@ -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; -- 2.11.0