From: Dan Wells Date: Fri, 29 Jun 2018 16:42:05 +0000 (-0400) Subject: Forward-port 3.1.3 upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fde814620213488dd5376cfaf5f09a3787ae5192;p=evergreen%2Fequinox.git Forward-port 3.1.3 upgrade script Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.1.2-3.1.3-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.1.2-3.1.3-upgrade-db.sql new file mode 100644 index 0000000000..97141019fc --- /dev/null +++ b/Open-ILS/src/sql/Pg/version-upgrade/3.1.2-3.1.3-upgrade-db.sql @@ -0,0 +1,15 @@ +--Upgrade Script for 3.1.2 to 3.1.3 +\set eg_version '''3.1.3''' +BEGIN; +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.1.3', :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 + +CREATE INDEX action_usr_circ_history_source_circ_idx + ON action.usr_circ_history + USING btree + (source_circ); + +COMMIT;