LP#1380709 Stamping upgrade script for fund debit invoice links
authorKathy Lussier <klussier@masslnc.org>
Thu, 18 Feb 2016 17:58:03 +0000 (12:58 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 18 Feb 2016 17:58:03 +0000 (12:58 -0500)
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0954.schema.fund_debit_invoice_links.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fund_debit_invoice_links.sql [deleted file]

index 957376b..0e34926 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 ('0953', :eg_version); --miker/gmcharlt/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0954', :eg_version); --berick/jihpringle/kmlussier
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0954.schema.fund_debit_invoice_links.sql b/Open-ILS/src/sql/Pg/upgrade/0954.schema.fund_debit_invoice_links.sql
new file mode 100644 (file)
index 0000000..5976fe1
--- /dev/null
@@ -0,0 +1,13 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0954', :eg_version);
+
+ALTER TABLE acq.fund_debit 
+    ADD COLUMN invoice_entry INTEGER 
+        REFERENCES acq.invoice_entry (id)
+        ON DELETE SET NULL;
+
+CREATE INDEX fund_debit_invoice_entry_idx ON acq.fund_debit (invoice_entry);
+CREATE INDEX lineitem_detail_fund_debit_idx ON acq.lineitem_detail (fund_debit);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fund_debit_invoice_links.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fund_debit_invoice_links.sql
deleted file mode 100644 (file)
index 48560e4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE acq.fund_debit 
-    ADD COLUMN invoice_entry INTEGER 
-        REFERENCES acq.invoice_entry (id)
-        ON DELETE SET NULL;
-
-CREATE INDEX fund_debit_invoice_entry_idx ON acq.fund_debit (invoice_entry);
-CREATE INDEX lineitem_detail_fund_debit_idx ON acq.lineitem_detail (fund_debit);
-
-COMMIT;