LP#1440114 Stamping upgrade for Blanket PO
authorBill Erickson <berickxx@gmail.com>
Wed, 19 Aug 2015 16:35:55 +0000 (12:35 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 19 Aug 2015 16:35:55 +0000 (12:35 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0930.schema.acq_blanket_orders.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/0931.data.acq_blanket_order.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq_blanket_orders.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq_blanket_order.sql [deleted file]

index 209df2d..07aa790 100644 (file)
@@ -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 (file)
index 0000000..1592e51
--- /dev/null
@@ -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 (file)
index 0000000..355151a
--- /dev/null
@@ -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 (file)
index 4e9df8c..0000000
+++ /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 (file)
index b5a2f6d..0000000
+++ /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;