Forward port 3.0.9 upgrade script
authorDan Wells <dbw2@calvin.edu>
Fri, 29 Jun 2018 16:41:26 +0000 (12:41 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 29 Jun 2018 16:41:26 +0000 (12:41 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/version-upgrade/3.0.8-3.0.9-upgrade-db.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.0.8-3.0.9-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.0.8-3.0.9-upgrade-db.sql
new file mode 100644 (file)
index 0000000..2d4c6d6
--- /dev/null
@@ -0,0 +1,15 @@
+--Upgrade Script for 3.0.8 to 3.0.9
+\set eg_version '''3.0.9'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.0.9', :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;