From: Mike Rylander Date: Mon, 26 Sep 2011 16:18:03 +0000 (-0400) Subject: Stamping upgrade script for EDI cleanup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7e952b4ed88f7425be9ce9c1f7aff9a789578c66;p=evergreen%2Fmasslnc.git Stamping upgrade script for EDI cleanup 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 67fe0e897b..7fa92574f4 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 ('0628', :eg_version); -- jamesrf/berick +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0629', :eg_version); -- senator/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0629.data.jedi-template.sql b/Open-ILS/src/sql/Pg/upgrade/0629.data.jedi-template.sql new file mode 100644 index 0000000000..e5806958b5 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0629.data.jedi-template.sql @@ -0,0 +1,14 @@ +-- Evergreen DB patch XXXX.data.jedi-template.sql +-- +-- +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0629', :eg_version); + +UPDATE action_trigger.event_definition + SET template = + REPLACE(template, 'helpers.get_li_attr', 'helpers.get_li_attr_jedi') + WHERE id = 23; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.jedi-template.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.jedi-template.sql deleted file mode 100644 index e16f70004e..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.jedi-template.sql +++ /dev/null @@ -1,14 +0,0 @@ --- Evergreen DB patch XXXX.data.jedi-template.sql --- --- -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE action_trigger.event_definition - SET template = - REPLACE(template, 'helpers.get_li_attr', 'helpers.get_li_attr_jedi') - WHERE id = 23; - -COMMIT;