[open-ils-commits] r16807 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 24 13:02:07 EDT 2010
Author: miker
Date: 2010-06-24 13:02:03 -0400 (Thu, 24 Jun 2010)
New Revision: 16807
Modified:
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql
Log:
arg ... thinkos. 0315 will work now
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-06-24 16:57:30 UTC (rev 16806)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-06-24 17:02:03 UTC (rev 16807)
@@ -4288,14 +4288,25 @@
WHERE i.func IN ('replace')
AND m.id IN (19);
-INSERT INTO config.metabib_field_index_norm_map (field,norm)
+INSERT INTO config.metabib_field_index_norm_map (field,norm,pos)
SELECT m.id,
i.id,
+ -2
FROM config.metabib_field m,
config.index_normalizer i
- WHERE i.func IN ('btrim','remove_paren_substring')
+ WHERE i.func IN ('remove_paren_substring')
AND m.id IN (26);
+INSERT INTO config.metabib_field_index_norm_map (field,norm,pos)
+ SELECT m.id,
+ i.id,
+ -1
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('btrim')
+ AND m.id IN (26);
+
+
-- claims returned mark item missing
INSERT INTO
config.org_unit_setting_type ( name, label, description, datatype )
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql 2010-06-24 16:57:30 UTC (rev 16806)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql 2010-06-24 17:02:03 UTC (rev 16807)
@@ -25,13 +25,23 @@
0
);
-INSERT INTO config.metabib_field_index_norm_map (field,norm)
+INSERT INTO config.metabib_field_index_norm_map (field,norm,pos)
SELECT m.id,
i.id,
+ -2
FROM config.metabib_field m,
config.index_normalizer i
- WHERE i.func IN ('btrim','remove_paren_substring')
+ WHERE i.func IN ('remove_paren_substring')
AND m.id IN (26);
+INSERT INTO config.metabib_field_index_norm_map (field,norm,pos)
+ SELECT m.id,
+ i.id,
+ -1
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('btrim')
+ AND m.id IN (26);
+
COMMIT;
More information about the open-ils-commits
mailing list