From dfae04534e477057ca7eab6cf3be51553cdf3945 Mon Sep 17 00:00:00 2001 From: scottmk Date: Wed, 7 Apr 2010 14:35:09 +0000 Subject: [PATCH] Add boolean column "prorate" to acq.invoice_item_type. 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/0228.schema.acq-invoice-item-type-prorate.sql M Open-ILS/examples/fm_IDL.xml git-svn-id: svn://svn.open-ils.org/ILS/trunk@16153 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 | 3 ++- .../sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql | 8 ++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index b8fe012cd..9294d40cb 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -874,6 +874,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 b612ca710..753412b49 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -60,7 +60,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0227'); -- phasefx +INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- 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 295014595..ad7880996 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -811,7 +811,8 @@ CREATE TABLE acq.invoice_entry ( CREATE TABLE acq.invoice_item_type ( code TEXT PRIMARY KEY, - name TEXT NOT NULL -- i18n-ize + name TEXT NOT NULL, -- i18n-ize + prorate BOOL NOT NULL DEFAULT FALSE ); CREATE TABLE acq.invoice_item ( -- for invoice-only debits: taxes/fees/non-bib items/etc diff --git a/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql b/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql new file mode 100644 index 000000000..a3ad75815 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql @@ -0,0 +1,8 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar + +ALTER TABLE acq.invoice_item_type + ADD COLUMN prorate BOOL NOT NULL DEFAULT FALSE; + +COMMIT; -- 2.11.0