[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 730b9492380f2aba97b5b26298dc97f929527961
Evergreen Git
git at git.evergreen-ils.org
Thu Aug 22 11:29:56 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_3 has been updated
via 730b9492380f2aba97b5b26298dc97f929527961 (commit)
via 1465e5b424b8e4c28ab013ff5385c1a57a7d3eae (commit)
from 07c4756a92e6adc839c68e7f5e9e27e22d080ac6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 730b9492380f2aba97b5b26298dc97f929527961
Author: Mike Rylander <mrylander at gmail.com>
Date: Thu Aug 22 11:26:20 2013 -0400
Stamping upgrade script for series title normalizer improvement
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 68255c5..0919d76 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -87,7 +87,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 ('0819', :eg_version); -- phasefx/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0820', :eg_version); -- callender/miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql b/Open-ILS/src/sql/Pg/upgrade/0820.data.series_normalizer.sql
similarity index 92%
rename from Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql
rename to Open-ILS/src/sql/Pg/upgrade/0820.data.series_normalizer.sql
index 1249a63..12e9e1d 100644
--- a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0820.data.series_normalizer.sql
@@ -3,7 +3,7 @@ BEGIN;
-- Remove [ and ] characters from seriestitle.
-- Those characters don't play well when searching.
-SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); -- Callender
+SELECT evergreen.upgrade_deps_block_check('0820', :eg_version); -- Callender
INSERT INTO config.metabib_field_index_norm_map (field,norm,params, pos)
SELECT m.id,
commit 1465e5b424b8e4c28ab013ff5385c1a57a7d3eae
Author: Steven Callender <stevecallender at esilibrary.com>
Date: Tue Jun 4 14:11:50 2013 -0400
Remove [ and ] characters from seriestitle index LP#1187521
Signed-off-by: Steven Callender <stevecallender at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
index e524142..9893eae 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -7530,6 +7530,26 @@ INSERT INTO config.metabib_field_index_norm_map (field,norm,params)
WHERE i.func IN ('replace')
AND m.id IN (19);
+INSERT INTO config.metabib_field_index_norm_map (field,norm,params, pos)
+ SELECT m.id,
+ i.id,
+ $$["]",""]$$,
+ '-1'
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('replace')
+ AND m.id IN (1);
+
+INSERT INTO config.metabib_field_index_norm_map (field,norm,params, pos)
+ SELECT m.id,
+ i.id,
+ $$["[",""]$$,
+ '-1'
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('replace')
+ AND m.id IN (1);
+
INSERT INTO config.metabib_field_index_norm_map (field,norm,pos)
SELECT m.id,
i.id,
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql
new file mode 100644
index 0000000..1249a63
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.series_normalizer.sql
@@ -0,0 +1,28 @@
+BEGIN;
+
+-- Remove [ and ] characters from seriestitle.
+-- Those characters don't play well when searching.
+
+SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); -- Callender
+
+INSERT INTO config.metabib_field_index_norm_map (field,norm,params, pos)
+ SELECT m.id,
+ i.id,
+ $$["]",""]$$,
+ '-1'
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('replace')
+ AND m.id IN (1);
+
+INSERT INTO config.metabib_field_index_norm_map (field,norm,params, pos)
+ SELECT m.id,
+ i.id,
+ $$["[",""]$$,
+ '-1'
+ FROM config.metabib_field m,
+ config.index_normalizer i
+ WHERE i.func IN ('replace')
+ AND m.id IN (1);
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
Open-ILS/src/sql/Pg/950.data.seed-values.sql | 20 ++++++++++++++
.../sql/Pg/upgrade/0820.data.series_normalizer.sql | 28 ++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletions(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/0820.data.series_normalizer.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list