Split bib re-fingerprinting into separate post upgrade file;
authorChris Sharp <csharp@georgialibraries.org>
Fri, 14 Jul 2017 16:29:37 +0000 (12:29 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 17 Sep 2017 23:28:56 +0000 (19:28 -0400)
Comment out reingest so we can use pingest.pl instead.

Open-ILS/src/sql/Pg/version-upgrade/2.11.3-2.12.0-upgrade-db.sql
Open-ILS/src/sql/Pg/version-upgrade/pines-post-upgrade-2.11-2.12.sql [new file with mode: 0644]

index ad5e3e7..00faea7 100644 (file)
@@ -955,20 +955,20 @@ REINDEX INDEX actor.actor_usr_first_given_name_unaccent_idx;
 REINDEX INDEX actor.actor_usr_second_given_name_unaccent_idx;
 REINDEX INDEX actor.actor_usr_family_name_unaccent_idx;
 
-\qecho Recalculating bib fingerprints; this may take a while
-ALTER TABLE biblio.record_entry DISABLE TRIGGER USER;
-UPDATE biblio.record_entry SET fingerprint = biblio.extract_fingerprint(marc) WHERE NOT deleted;
-ALTER TABLE biblio.record_entry ENABLE TRIGGER USER;
-
-\qecho Remapping metarecords
-SELECT metabib.remap_metarecord_for_bib(id, fingerprint)
-FROM biblio.record_entry
-WHERE NOT deleted;
-
-\qecho Running a browse and reingest of your bib records. It may take a while.
-\qecho You may cancel now without losing the effect of the rest of the
-\qecho upgrade script, and arrange the reingest later.
-\qecho .
-SELECT metabib.reingest_metabib_field_entries(id, FALSE, FALSE, TRUE)
-    FROM biblio.record_entry;
-
+-- \qecho Recalculating bib fingerprints; this may take a while
+-- ALTER TABLE biblio.record_entry DISABLE TRIGGER USER;
+-- UPDATE biblio.record_entry SET fingerprint = biblio.extract_fingerprint(marc) WHERE NOT deleted;
+-- ALTER TABLE biblio.record_entry ENABLE TRIGGER USER;
+-- 
+-- \qecho Remapping metarecords
+-- SELECT metabib.remap_metarecord_for_bib(id, fingerprint)
+-- FROM biblio.record_entry
+-- WHERE NOT deleted;
+
+-- \qecho Running a browse and reingest of your bib records. It may take a while.
+-- \qecho You may cancel now without losing the effect of the rest of the
+-- \qecho upgrade script, and arrange the reingest later.
+-- \qecho .
+-- SELECT metabib.reingest_metabib_field_entries(id, FALSE, FALSE, TRUE)
+--     FROM biblio.record_entry;
+-- 
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/pines-post-upgrade-2.11-2.12.sql b/Open-ILS/src/sql/Pg/version-upgrade/pines-post-upgrade-2.11-2.12.sql
new file mode 100644 (file)
index 0000000..f618eeb
--- /dev/null
@@ -0,0 +1,10 @@
+\qecho Recalculating bib fingerprints; this may take a while
+ALTER TABLE biblio.record_entry DISABLE TRIGGER USER;
+UPDATE biblio.record_entry SET fingerprint = biblio.extract_fingerprint(marc) WHERE NOT deleted;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER USER;
+
+\qecho Remapping metarecords
+SELECT metabib.remap_metarecord_for_bib(id, fingerprint)
+FROM biblio.record_entry
+WHERE NOT deleted;
+