From: Kathy Lussier Date: Thu, 18 Feb 2016 17:58:03 +0000 (-0500) Subject: LP#1380709 Stamping upgrade script for fund debit invoice links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=deb37b86228082e8af2d009c943137f039cdcb90;p=evergreen%2Fmasslnc.git LP#1380709 Stamping upgrade script for fund debit invoice links Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 957376b669..0e34926bd2 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 ('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 index 0000000000..5976fe108e --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0954.schema.fund_debit_invoice_links.sql @@ -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 index 48560e4964..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fund_debit_invoice_links.sql +++ /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;