Forward port 2.9.5 to 2.9.6 upgrade script.
authorJason Stephenson <jstephenson@mvlcstaff.org>
Wed, 15 Jun 2016 19:08:53 +0000 (15:08 -0400)
committerJason Stephenson <jstephenson@mvlcstaff.org>
Wed, 15 Jun 2016 19:12:15 +0000 (15:12 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
Open-ILS/src/sql/Pg/version-upgrade/2.9.5-2.9.6-upgrade-db.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.9.5-2.9.6-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.9.5-2.9.6-upgrade-db.sql
new file mode 100644 (file)
index 0000000..a3190ff
--- /dev/null
@@ -0,0 +1,11 @@
+--Upgrade Script for 2.9.5 to 2.9.6
+\set eg_version '''2.9.6'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.9.6', :eg_version);
+
+SELECT evergreen.upgrade_deps_block_check('0981', :eg_version); 
+
+CREATE INDEX hold_request_copy_capture_time_idx ON action.hold_request (current_copy,capture_time);
+CREATE INDEX hold_request_open_captured_shelf_lib_idx ON action.hold_request (current_shelf_lib) WHERE capture_time IS NOT NULL AND fulfillment_time IS NULL AND (pickup_lib <> current_shelf_lib);
+
+COMMIT;