From 676f89c224adac1a208bd5afdbd5d959d90dafdd Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 9 Sep 2010 15:31:23 +0000 Subject: [PATCH] With group billing calls we need a new index git-svn-id: svn://svn.open-ils.org/ILS/trunk@17541 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/005.schema.actors.sql | 1 + Open-ILS/src/sql/Pg/upgrade/0390.schema.usrgroup-index.sql | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0390.schema.usrgroup-index.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index f4e12848e..8ef60d8a0 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0389'); -- miker +INSERT INTO config.upgrade_log (version) VALUES ('0390'); -- miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql index 6dba42c2b..cba0ee6ea 100644 --- a/Open-ILS/src/sql/Pg/005.schema.actors.sql +++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql @@ -93,6 +93,7 @@ COMMENT ON TABLE actor.usr IS $$ $$; CREATE INDEX actor_usr_home_ou_idx ON actor.usr (home_ou); +CREATE INDEX actor_usr_usrgroup_idx ON actor.usr (usrgroup); CREATE INDEX actor_usr_mailing_address_idx ON actor.usr (mailing_address); CREATE INDEX actor_usr_billing_address_idx ON actor.usr (billing_address); diff --git a/Open-ILS/src/sql/Pg/upgrade/0390.schema.usrgroup-index.sql b/Open-ILS/src/sql/Pg/upgrade/0390.schema.usrgroup-index.sql new file mode 100644 index 000000000..c321e4175 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0390.schema.usrgroup-index.sql @@ -0,0 +1,7 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0390'); -- miker +CREATE INDEX actor_usr_usrgroup_idx ON actor.usr (usrgroup); + +COMMIT; + -- 2.11.0