From: Dan Wells Date: Thu, 22 May 2014 15:24:41 +0000 (-0400) Subject: LP#1314920 Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5beaf3ae96250320417a4c634dc5dbd34f90308d;p=evergreen%2Fpines.git LP#1314920 Stamping upgrade script Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index ba3ac96246..231f1bec13 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 ('0880', :eg_version); -- miker/sreyseng/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0881', :eg_version); -- phasefx/dbwells CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0881.data.YAOUS-desc-update.sql b/Open-ILS/src/sql/Pg/upgrade/0881.data.YAOUS-desc-update.sql new file mode 100644 index 0000000000..858b706545 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0881.data.YAOUS-desc-update.sql @@ -0,0 +1,9 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0881', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = replace(replace(description,'Original','Physical'),'"ol"','"physical_loc"') + WHERE name = 'opac.org_unit_hiding.depth'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql deleted file mode 100644 index 280bd65cac..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE config.org_unit_setting_type - SET description = replace(replace(description,'Original','Physical'),'"ol"','"physical_loc"') - WHERE name = 'opac.org_unit_hiding.depth'; - -COMMIT;