From: Mike Rylander Date: Thu, 25 Aug 2011 00:09:04 +0000 (-0400) Subject: Stamped upgrade script for acq-lineitem-detail-receiver X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b5c55145272313c13b3e92e75361cb27772773ba;p=contrib%2FConifer.git Stamped upgrade script for acq-lineitem-detail-receiver Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e5830e2730..5f5cabf3cc 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0608', :eg_version); -- miker/berick +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0609', :eg_version); -- miker/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0609.schema.acq-lineitem-detail-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/0609.schema.acq-lineitem-detail-receiver.sql new file mode 100644 index 0000000000..49042bd7ce --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0609.schema.acq-lineitem-detail-receiver.sql @@ -0,0 +1,11 @@ +-- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0609', :eg_version); + +ALTER TABLE acq.lineitem_detail + ADD COLUMN receiver INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED; + + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-lineitem-detail-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-lineitem-detail-receiver.sql deleted file mode 100644 index 8a604f9169..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-lineitem-detail-receiver.sql +++ /dev/null @@ -1,11 +0,0 @@ --- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -ALTER TABLE acq.lineitem_detail - ADD COLUMN receiver INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED; - - -COMMIT;