[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 519ec1ccb0a148e2816f3b2e6587c16c561e1c4b

Evergreen Git git at git.evergreen-ils.org
Wed Nov 16 11:48:16 EST 2016


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_10 has been updated
       via  519ec1ccb0a148e2816f3b2e6587c16c561e1c4b (commit)
       via  1e59d99993db01b29ae7e7a36b7062f3c3816f1c (commit)
      from  30abb31d8fb3d9be289db89c801af623f069b122 (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 519ec1ccb0a148e2816f3b2e6587c16c561e1c4b
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Wed Nov 16 11:46:40 2016 -0500

    LP#1615736: stamping schema update
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    
    Conflicts:
    	Open-ILS/src/sql/Pg/002.schema.config.sql

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 7a011f0..37c3137 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -91,7 +91,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 ('0981', :eg_version); -- gmcharlt/jlundgren/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1001', :eg_version); -- stompro/gmcharlt
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql b/Open-ILS/src/sql/Pg/upgrade/1001.schema.action_usr_circ_history_index.sql
similarity index 54%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql
rename to Open-ILS/src/sql/Pg/upgrade/1001.schema.action_usr_circ_history_index.sql
index 965d983..47a4c89 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1001.schema.action_usr_circ_history_index.sql
@@ -1,6 +1,6 @@
 BEGIN;
 
--- SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1001', :eg_version); -- stompro/gmcharlt
 
 CREATE INDEX action_usr_circ_history_usr_idx ON action.usr_circ_history ( usr );
 

commit 1e59d99993db01b29ae7e7a36b7062f3c3816f1c
Author: Josh Stompro <stomproj at larl.org>
Date:   Mon Aug 29 14:07:48 2016 -0500

    LP#1615736 - Add an index on the usr field of action.usr_circ_history.
    
    Improve the performance of looking up a users circ history by adding
    an index on action.usr_circ_history( usr ).
    
    To test for performance improvements time doing a search for a particular
    users history before and after the index is created.
    
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql
index c79793a..b2e48a6 100644
--- a/Open-ILS/src/sql/Pg/090.schema.action.sql
+++ b/Open-ILS/src/sql/Pg/090.schema.action.sql
@@ -1320,6 +1320,8 @@ CREATE TABLE action.usr_circ_history (
                  ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED
 );
 
+CREATE INDEX action_usr_circ_history_usr_idx ON action.usr_circ_history ( usr );
+
 CREATE TRIGGER action_usr_circ_history_target_copy_trig 
     AFTER INSERT OR UPDATE ON action.usr_circ_history 
     FOR EACH ROW EXECUTE PROCEDURE evergreen.fake_fkey_tgr('target_copy');
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql
new file mode 100644
index 0000000..965d983
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.action_usr_circ_history_index.sql
@@ -0,0 +1,7 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+CREATE INDEX action_usr_circ_history_usr_idx ON action.usr_circ_history ( usr );
+
+COMMIT;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/090.schema.action.sql          |    2 ++
 .../1001.schema.action_usr_circ_history_index.sql  |    7 +++++++
 3 files changed, 10 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/1001.schema.action_usr_circ_history_index.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list