[open-ils-commits] r14973 - branches/rel_1_6_0/Open-ILS/src/sql/Pg (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 19 11:18:46 EST 2009
Author: dbs
Date: 2009-11-19 11:18:43 -0500 (Thu, 19 Nov 2009)
New Revision: 14973
Removed:
branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
Log:
Hmm. Missed this vestigial, dead file. Deleting.
Deleted: branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql 2009-11-19 16:16:29 UTC (rev 14972)
+++ branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql 2009-11-19 16:18:43 UTC (rev 14973)
@@ -1,22 +0,0 @@
-/* Enable LIKE to use an index for database clusters with locales other than C or POSIX */
-CREATE INDEX authority_full_rec_value_tpo_index ON authority.full_rec (value text_pattern_ops);
-
-/* Upgrade to MODS32 for transforms */
-ALTER TABLE config.metabib_field
- ALTER COLUMN format SET DEFAULT 'mods32';
-UPDATE config.metabib_field
- SET format = 'mods32';
-
-/* Update index definitions to MODS32-compliant XPaths */
-UPDATE config.metabib_field
- SET xpath = $$//mods:mods/mods:name[@type='corporate']/mods:namePart[../mods:role/mods:roleTerm[text()='creator']]$$
- WHERE field_class = 'author' AND name = 'corporate';
-UPDATE config.metabib_field
- SET xpath = $$//mods:mods/mods:name[@type='personal']/mods:namePart[../mods:role/mods:roleTerm[text()='creator']]$$
- WHERE field_class = 'author' AND name = 'personal';
-UPDATE config.metabib_field
- SET xpath = $$//mods:mods/mods:name[@type='conference']/mods:namePart[../mods:role/mods:roleTerm[text()='creator']]$$
- WHERE field_class = 'author' AND name = 'conference';
-/* And they all want mods32: as their prefix */
-UPDATE config.metabib_field
- SET xpath = regexp_replace(xpath, 'mods:', 'mods32:', 'g');
More information about the open-ils-commits
mailing list