LP#1243023: Add optional quick reingest to upgrade script
authorDan Wells <dbw2@calvin.edu>
Wed, 19 Mar 2014 01:15:25 +0000 (21:15 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 19 Mar 2014 01:25:41 +0000 (21:25 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.function.oils_xpath-tweaks-for-newer-pg.sql

index 14cd1a0..d017e75 100644 (file)
@@ -601,3 +601,11 @@ END;
 $func$ LANGUAGE PLPGSQL;
 
 COMMIT;
+
+\qecho This script will now attempt a "quick fix" of browse_entry only.
+\qecho If you have issues, a browse or full reingest is recommended.
+\qecho You may cancel now without losing the effect of the rest of the
+\qecho upgrade script, and arrange the reingest later.
+
+UPDATE metabib.browse_entry SET value=evergreen.xml_famous5_to_text(value) WHERE value LIKE '%&%';
+UPDATE metabib.browse_entry SET sort_value=evergreen.xml_famous5_to_text(sort_value) WHERE sort_value LIKE '%&%';