[open-ils-commits] [GIT] Evergreen ILS branch master updated. bd8e4f06e5451abab751cb6b0ff3b33588b28c20

Evergreen Git git at git.evergreen-ils.org
Wed Nov 16 11:48:15 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, master has been updated
       via  bd8e4f06e5451abab751cb6b0ff3b33588b28c20 (commit)
       via  00692d6b4a022ed1c725b26b6daf373cf678b754 (commit)
      from  abc63ac244d909e02886a428dc9a00666efd8742 (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 bd8e4f06e5451abab751cb6b0ff3b33588b28c20
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>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 5db1ee3..1a80bc0 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 ('1000', :eg_version); -- bshum/dbwells
+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 00692d6b4a022ed1c725b26b6daf373cf678b754
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 731ab3c..19e1f1e 100644
--- a/Open-ILS/src/sql/Pg/090.schema.action.sql
+++ b/Open-ILS/src/sql/Pg/090.schema.action.sql
@@ -1412,6 +1412,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