Porting 2.8.3->2.8.4 SQL upgrade
authorBill Erickson <berickxx@gmail.com>
Wed, 16 Sep 2015 19:20:49 +0000 (15:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 16 Sep 2015 19:21:30 +0000 (15:21 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/version-upgrade/2.8.3-2.8.4-upgrade-db.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.8.3-2.8.4-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.8.3-2.8.4-upgrade-db.sql
new file mode 100644 (file)
index 0000000..40f9c43
--- /dev/null
@@ -0,0 +1,12 @@
+--Upgrade Script for 2.8.3 to 2.8.4
+\set eg_version '''2.8.4'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.8.4', :eg_version);
+
+SELECT evergreen.upgrade_deps_block_check('0941', :eg_version);
+
+UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '100' AND control_set = 1 AND  sf_list ILIKE '%e%';
+
+UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '110' AND control_set = 1 AND  sf_list ILIKE '%e%';
+
+COMMIT;