Stamping 0838 - remove bibcn normalizers
authorDan Wells <dbw2@calvin.edu>
Mon, 7 Oct 2013 20:10:04 +0000 (16:10 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 7 Oct 2013 20:10:04 +0000 (16:10 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0838.data.bibcn_index_normalizers.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.bibcn_index_normalizers.sql [deleted file]

index ef779f5..0f946d4 100644 (file)
@@ -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 ('0837', :eg_version); -- eeevil/senator/csharp
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0838', :eg_version); -- senator/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0838.data.bibcn_index_normalizers.sql b/Open-ILS/src/sql/Pg/upgrade/0838.data.bibcn_index_normalizers.sql
new file mode 100644 (file)
index 0000000..2558169
--- /dev/null
@@ -0,0 +1,17 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0838', :eg_version);
+
+DELETE FROM config.metabib_field_index_norm_map
+    WHERE field = 25 AND norm IN (
+        SELECT id
+        FROM config.index_normalizer
+        WHERE func IN ('search_normalize','split_date_range')
+    );
+
+\qecho If your site's bibcn searches are affected by this issue, you may wish
+\qecho to reingest your bib records now.  It's probably not worth it for many
+\qecho sites.
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.bibcn_index_normalizers.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.bibcn_index_normalizers.sql
deleted file mode 100644 (file)
index b07f78a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-BEGIN;
-
--- check whether patch can be applied
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-DELETE FROM config.metabib_field_index_norm_map
-    WHERE field = 25 AND norm IN (
-        SELECT id
-        FROM config.index_normalizer
-        WHERE func IN ('search_normalize','split_date_range')
-    );
-
-\qecho If your site's bibcn searches are affected by this issue, you may wish
-\qecho to reingest your bib records now.  It's probably not worth it for many
-\qecho sites.
-
-COMMIT;