[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. b56c0a7de9b606235b0dad1e50654671c3521101
Evergreen Git
git at git.evergreen-ils.org
Wed Jun 15 20:37:45 EDT 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, rel_2_10 has been updated
via b56c0a7de9b606235b0dad1e50654671c3521101 (commit)
via aebfec3adb5551bf3190c0b8a4d84cd79447388b (commit)
via f1a9bdc883f957537e92df822a4117b9ce0a3bb4 (commit)
from cc46f72de1f5eefba303964a8080a7790719677e (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 b56c0a7de9b606235b0dad1e50654671c3521101
Author: Jason Stephenson <jstephenson at mvlcstaff.org>
Date: Wed Jun 15 15:08:53 2016 -0400
Forward port 2.9.5 to 2.9.6 upgrade script.
Signed-off-by: Jason Stephenson <jstephenson at mvlcstaff.org>
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
index 0000000..a3190ff
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.9.5-2.9.6-upgrade-db.sql
@@ -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;
commit aebfec3adb5551bf3190c0b8a4d84cd79447388b
Author: Galen Charlton <gmc at esilibrary.com>
Date: Wed Jun 15 20:34:31 2016 -0400
bump up upgrade instructions for 2.10.5
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/docs/installation/server_upgrade.txt b/docs/installation/server_upgrade.txt
index 455c630..93ea494 100644
--- a/docs/installation/server_upgrade.txt
+++ b/docs/installation/server_upgrade.txt
@@ -8,7 +8,7 @@ Software Prerequisites
* **PostgreSQL**: Version 9.3 is recommended. The minimum supported version
is 9.1.
- * **Linux**: Evergreen 2.10.4 has been tested on Debian Jessie (8.0),
+ * **Linux**: Evergreen 2.10.5 has been tested on Debian Jessie (8.0),
Debian Wheezy (7.0), Ubuntu Trusty Tahr (14.04),
Ubuntu Precise Pangolin (12.04), and Fedora.
If you are running an older version of these distributions, you may want
@@ -44,12 +44,12 @@ osrf_control --localhost --stop-all
.. Back up the /openils directory.
. Upgrade OpenSRF. Download and install the latest version of OpenSRF from
the https://evergreen-ils.org/opensrf-downloads/[OpenSRF download page].
-. As the *opensrf* user, download and extract Evergreen 2.10.4:
+. As the *opensrf* user, download and extract Evergreen 2.10.5:
+
[source, bash]
-----------------------------------------------
-wget https://evergreen-ils.org/downloads/Evergreen-ILS-2.10.4.tar.gz
-tar xzf Evergreen-ILS-2.10.4.tar.gz
+wget https://evergreen-ils.org/downloads/Evergreen-ILS-2.10.5.tar.gz
+tar xzf Evergreen-ILS-2.10.5.tar.gz
-----------------------------------------------
+
[NOTE]
@@ -59,7 +59,7 @@ For the latest edition of Evergreen, check the https://evergreen-ils.org/egdownl
+
[source, bash]
---------------------------------------------
-cd /home/opensrf/Evergreen-ILS-2.10.4
+cd /home/opensrf/Evergreen-ILS-2.10.5
---------------------------------------------
+
On the next command, replace `[distribution]` with one of these values for your
@@ -84,7 +84,7 @@ make -f Open-ILS/src/extras/Makefile.install [distribution]
+
[source, bash]
------------------------------------------------------------
-cd /home/opensrf/Evergreen-ILS-2.10.4
+cd /home/opensrf/Evergreen-ILS-2.10.5
PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf
make
------------------------------------------------------------
@@ -95,8 +95,8 @@ These instructions assume that you have also installed OpenSRF under /openils/.
+
[source, bash]
------------------------------------------------------------
-cd /home/opensrf/Evergreen-ILS-2.10.4
-make STAFF_CLIENT_STAMP_ID=rel_2_10_4 install
+cd /home/opensrf/Evergreen-ILS-2.10.5
+make STAFF_CLIENT_STAMP_ID=rel_2_10_5 install
------------------------------------------------------------
+
. As the *root* user, change all files to be owned by the opensrf user and group:
@@ -112,7 +112,7 @@ chown -R opensrf:opensrf /openils
-----------------------------------------------------------
cd /openils/var/web/xul/
rm server
-ln -sf rel_2_10_4/server server
+ln -sf rel_2_10_5/server server
----------------------------------------------------------
+
. As the *opensrf* user, update opensrf_core.xml and opensrf.xml by copying the
@@ -132,7 +132,7 @@ Copying these configuration files will remove any customizations you have made t
+
[source, bash]
-------------------------------------------------------------------------
-cd /home/opensrf/Evergreen-ILS-2.10.4
+cd /home/opensrf/Evergreen-ILS-2.10.5
perl Open-ILS/src/support-scripts/eg_db_config --update-config --service all \
--create-offline --database evergreen --host localhost --user evergreen --password evergreen
-------------------------------------------------------------------------
@@ -156,21 +156,21 @@ The diff command can be used to show the differences between the distribution ve
+
[source, bash]
----------------------------------------------------------
-cp /home/opensrf/Evergreen-ILS-2.10.4/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup
+cp /home/opensrf/Evergreen-ILS-2.10.5/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup
----------------------------------------------------------
+
.. Update /etc/apache2/eg_vhost.conf by copying the example from Open-ILS/examples/apache/eg_vhost.conf.
+
[source, bash]
----------------------------------------------------------
-cp /home/opensrf/Evergreen-ILS-2.10.4/Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/eg_vhost.conf
+cp /home/opensrf/Evergreen-ILS-2.10.5/Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/eg_vhost.conf
----------------------------------------------------------
+
.. Update /etc/apache2/sites-available/eg.conf by copying the example from Open-ILS/examples/apache/eg.conf.
+
[source, bash]
----------------------------------------------------------
-cp /home/opensrf/Evergreen-ILS-2.10.4/Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/eg.conf
+cp /home/opensrf/Evergreen-ILS-2.10.5/Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/eg.conf
----------------------------------------------------------
Upgrade the Evergreen database schema
@@ -193,7 +193,7 @@ anything goes wrong during the upgrade.
=============
Evergreen provides incremental upgrade scripts that allow you to upgrade
from one minor version to the next until you have the current version of
-the schema. For example, if you want to upgrade from 2.5.1 to 2.10.4, you
+the schema. For example, if you want to upgrade from 2.5.1 to 2.10.5, you
would run the following upgrade scripts:
- 2.5.1-2.5.2-upgrade-db.sql
@@ -219,13 +219,14 @@ would run the following upgrade scripts:
- 2.10.1-2.10.2-upgrade-db.sql
- 2.10.2-2.10.3-upgrade-db.sql
- 2.10.3-2.10.4-upgrade-db.sql
+- 2.10.4-2.10.5-upgrade-db.sql
Note that you do *not* want to run additional 2.5 scripts to upgrade to the
newest version of 2.5, since currently there is no automated way to upgrade
from 2.5.4+ to 2.6. Only upgrade as far as necessary to reach the major
version upgrade script (in this example, as far as 2.5.3).
-To upgrade across multiple major versions (e.g. from 2.3.0 to 2.10.4), use
+To upgrade across multiple major versions (e.g. from 2.3.0 to 2.10.5), use
the same logic to utilize the provided major version upgrade scripts. For
example:
@@ -243,7 +244,7 @@ example:
- 2.8.4-2.9.0-upgrade-db.sql
- (run all incremental scripts from 2.9.0 to 2.9.3)
- 2.9.3-2.10.0-upgrade-db.sql
-- (run all incremental scripts from 2.10.0 to 2.10.4)
+- (run all incremental scripts from 2.10.0 to 2.10.5)
=============
[CAUTION]
@@ -257,8 +258,8 @@ as a user with the ability to connect to the database server.
[source, bash]
----------------------------------------------------------
-cd /home/opensrf/Evergreen-ILS-2.10.4/Open-ILS/src/sql/Pg
-psql -U evergreen -h localhost -f version-upgrade/2.10.3-2.10.4-upgrade-db.sql evergreen
+cd /home/opensrf/Evergreen-ILS-2.10.5/Open-ILS/src/sql/Pg
+psql -U evergreen -h localhost -f version-upgrade/2.10.4-2.10.5-upgrade-db.sql evergreen
----------------------------------------------------------
[TIP]
commit f1a9bdc883f957537e92df822a4117b9ce0a3bb4
Author: Galen Charlton <gmc at esilibrary.com>
Date: Wed Jun 15 20:32:10 2016 -0400
2.10.4-2.10.5 schema upgrade script
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.10.4-2.10.5-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.10.4-2.10.5-upgrade-db.sql
new file mode 100644
index 0000000..cfcac49
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.10.4-2.10.5-upgrade-db.sql
@@ -0,0 +1,12 @@
+--Upgrade Script for 2.10.4 to 2.10.5
+\set eg_version '''2.10.5'''
+BEGIN;
+
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.10.5', :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;
-----------------------------------------------------------------------
Summary of changes:
.../2.10.4-2.10.5-upgrade-db.sql} | 4 ++
.../2.9.5-2.9.6-upgrade-db.sql} | 3 ++
docs/installation/server_upgrade.txt | 37 ++++++++++---------
3 files changed, 26 insertions(+), 18 deletions(-)
copy Open-ILS/src/sql/Pg/{upgrade/0981.schema.indexes_for_alhr_queries.sql => version-upgrade/2.10.4-2.10.5-upgrade-db.sql} (71%)
copy Open-ILS/src/sql/Pg/{upgrade/0981.schema.indexes_for_alhr_queries.sql => version-upgrade/2.9.5-2.9.6-upgrade-db.sql} (71%)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list