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

Evergreen Git git at git.evergreen-ils.org
Wed Jun 27 16:09:42 EDT 2018


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  5e5f1fdf12892b672ae9882d2fe7dd62c9c89419 (commit)
       via  1ebb92b43de57f6358bf0f16d8b89ed1944c32a1 (commit)
      from  6afe826f3f7ea127fc44c4aadb345ce509c965ef (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 5e5f1fdf12892b672ae9882d2fe7dd62c9c89419
Author: Jason Stephenson <jason at sigio.com>
Date:   Wed Jun 27 16:08:17 2018 -0400

    LP 1758160: Bump version in upgrade_log.
    
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 29f7a4a..4a061d8 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,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 ('1111', :eg_version); --jeffdavis/gmcharlt/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1112', :eg_version); -- Bmagic/JBoyer/Dyrcona
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql b/Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
similarity index 78%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
rename to Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
index 2f0673a..d407036 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
@@ -1,6 +1,6 @@
 BEGIN;
 
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1112', :eg_version);
 
 -- Add an index to action.usr_circ_history (source_circ) to speed up aging circs and purging accounts
 

commit 1ebb92b43de57f6358bf0f16d8b89ed1944c32a1
Author: blake <blake at mobiusconsortium.org>
Date:   Mon Apr 9 19:52:08 2018 -0500

    LP1758160_Deleting_patrons_can_exceed_staff_client_timeouts
    
    Added an index to action.usr_circ_history for much needed postgresql justice.
    This will increase the speed when deleting patrons with large number of circulations.
    
    Signed-off-by: blake <blake at mobiusconsortium.org>
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql
index 7d06aba..2fb3659 100644
--- a/Open-ILS/src/sql/Pg/090.schema.action.sql
+++ b/Open-ILS/src/sql/Pg/090.schema.action.sql
@@ -1547,6 +1547,7 @@ CREATE TABLE action.usr_circ_history (
 );
 
 CREATE INDEX action_usr_circ_history_usr_idx ON action.usr_circ_history ( usr );
+CREATE INDEX action_usr_circ_history_source_circ_idx ON action.usr_circ_history ( source_circ );
 
 CREATE TRIGGER action_usr_circ_history_target_copy_trig 
     AFTER INSERT OR UPDATE ON action.usr_circ_history 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
new file mode 100644
index 0000000..2f0673a
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- Add an index to action.usr_circ_history (source_circ) to speed up aging circs and purging accounts
+
+CREATE INDEX action_usr_circ_history_source_circ_idx 
+  ON action.usr_circ_history
+  USING btree
+  (source_circ);
+
+COMMIT;

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

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/090.schema.action.sql          |    1 +
 .../upgrade/1112.schema.auch-source_circ-index.sql |   12 ++++++++++++
 3 files changed, 14 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list