[open-ils-commits] r17299 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Aug 21 14:02:40 EDT 2010
Author: miker
Date: 2010-08-21 14:02:36 -0400 (Sat, 21 Aug 2010)
New Revision: 17299
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0377.schema.actor.card.barcode-lower-index.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
Log:
we need an index on LOWER(barcode) with r17018
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-20 23:32:32 UTC (rev 17298)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-21 18:02:36 UTC (rev 17299)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0376'); -- dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0377'); -- miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2010-08-20 23:32:32 UTC (rev 17298)
+++ trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2010-08-21 18:02:36 UTC (rev 17299)
@@ -315,6 +315,7 @@
$$;
CREATE INDEX actor_card_usr_idx ON actor.card (usr);
+CREATE INDEX actor_card_barcode_lower_idx ON actor.card (lower(barcode));
CREATE TABLE actor.org_unit_type (
id SERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0377.schema.actor.card.barcode-lower-index.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0377.schema.actor.card.barcode-lower-index.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0377.schema.actor.card.barcode-lower-index.sql 2010-08-21 18:02:36 UTC (rev 17299)
@@ -0,0 +1,4 @@
+
+INSERT INTO config.upgrade_log (version) VALUES ('0377'); -- miker .. no xact needed
+CREATE INDEX actor_card_barcode_lower_idx ON actor.card (lower(barcode));
+
More information about the open-ils-commits
mailing list