From: Bill Erickson Date: Wed, 19 Aug 2015 16:35:55 +0000 (-0400) Subject: LP#1440114 Stamping upgrade for Blanket PO X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c6a391d74432353548b6fb750cdf422e20b6ea49;p=evergreen%2Fmasslnc.git LP#1440114 Stamping upgrade for Blanket PO Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 209df2da2f..07aa790274 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0929', :eg_version); -- dbwells/remington/bshum +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0931', :eg_version); -- berick/kmlussier CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0930.schema.acq_blanket_orders.sql b/Open-ILS/src/sql/Pg/upgrade/0930.schema.acq_blanket_orders.sql new file mode 100644 index 0000000000..1592e51499 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0930.schema.acq_blanket_orders.sql @@ -0,0 +1,10 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0930', :eg_version); + +ALTER TABLE acq.invoice_item_type + ADD COLUMN blanket BOOLEAN NOT NULL DEFAULT FALSE, + ADD CONSTRAINT aiit_not_blanket_and_prorate + CHECK (blanket IS FALSE OR prorate IS FALSE); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/0931.data.acq_blanket_order.sql b/Open-ILS/src/sql/Pg/upgrade/0931.data.acq_blanket_order.sql new file mode 100644 index 0000000000..355151a38f --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0931.data.acq_blanket_order.sql @@ -0,0 +1,8 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0931', :eg_version); + +INSERT INTO acq.invoice_item_type (code, blanket, name) VALUES ( + 'BLA', TRUE, oils_i18n_gettext('BLA', 'Blanket Order', 'aiit', 'name')); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq_blanket_orders.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq_blanket_orders.sql deleted file mode 100644 index 4e9df8cd54..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq_blanket_orders.sql +++ /dev/null @@ -1,10 +0,0 @@ -BEGIN; - ---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -ALTER TABLE acq.invoice_item_type - ADD COLUMN blanket BOOLEAN NOT NULL DEFAULT FALSE, - ADD CONSTRAINT aiit_not_blanket_and_prorate - CHECK (blanket IS FALSE OR prorate IS FALSE); - -COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq_blanket_order.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq_blanket_order.sql deleted file mode 100644 index b5a2f6dad8..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq_blanket_order.sql +++ /dev/null @@ -1,8 +0,0 @@ -BEGIN; - ---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO acq.invoice_item_type (code, blanket, name) VALUES ( - 'BLA', TRUE, oils_i18n_gettext('BLA', 'Blanket Order', 'aiit', 'name')); - -COMMIT;