[open-ils-commits] r19719 - in branches/rel_2_1/Open-ILS/src/sql/Pg: . upgrade (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 12 17:19:46 EST 2011
Author: dbs
Date: 2011-03-12 17:19:40 -0500 (Sat, 12 Mar 2011)
New Revision: 19719
Modified:
branches/rel_2_1/Open-ILS/src/sql/Pg/005.schema.actors.sql
branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0498.lowercase_via_perl.sql
Log:
Use valid DDL for forgotten index on actor.card
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/005.schema.actors.sql 2011-03-12 22:18:59 UTC (rev 19718)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/005.schema.actors.sql 2011-03-12 22:19:40 UTC (rev 19719)
@@ -316,7 +316,7 @@
$$;
CREATE INDEX actor_card_usr_idx ON actor.card (usr);
-CREATE INDEX actor_card_barcode_evergreen.lowercase_idx ON actor.card (evergreen.lowercase(barcode));
+CREATE INDEX actor_card_barcode_evergreen_lowercase_idx ON actor.card (evergreen.lowercase(barcode));
CREATE TABLE actor.org_unit_type (
id SERIAL PRIMARY KEY,
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0498.lowercase_via_perl.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0498.lowercase_via_perl.sql 2011-03-12 22:18:59 UTC (rev 19718)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0498.lowercase_via_perl.sql 2011-03-12 22:19:40 UTC (rev 19719)
@@ -46,6 +46,10 @@
CREATE INDEX actor_usr_ident_value_idx ON actor.usr (evergreen.lowercase(ident_value));
CREATE INDEX actor_usr_ident_value2_idx ON actor.usr (evergreen.lowercase(ident_value2));
+-- update actor.card indexes
+DROP INDEX IF EXISTS actor.actor_card_barcode_evergreen_lowercase_idx;
+CREATE INDEX actor_card_barcode_evergreen_lowercase_idx ON actor.card (evergreen.lowercase(barcode));
+
CREATE OR REPLACE FUNCTION vandelay.match_bib_record ( ) RETURNS TRIGGER AS $func$
DECLARE
attr RECORD;
More information about the open-ils-commits
mailing list