[open-ils-commits] [GIT] Evergreen ILS branch rel_2_6 updated. 118473337f45d5465f56ffc53af742fae4d9e3be

Evergreen Git git at git.evergreen-ils.org
Thu Jul 10 11:51:22 EDT 2014


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_6 has been updated
       via  118473337f45d5465f56ffc53af742fae4d9e3be (commit)
      from  961a62cada6c7f872754744381f49302922957f6 (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 118473337f45d5465f56ffc53af742fae4d9e3be
Author: Remington Steed <rjs7 at calvin.edu>
Date:   Wed Jul 9 15:40:00 2014 -0400

    Documentation: Upgrade instructions examples
    
    This commit adds a note (with examples) about upgrading the database schema
    across major versions. It also reformats a long line into multiple lines,
    changes a NOTE to a TIP, makes a small correction, and replaces a repetitive
    command with a short explanation.
    
    Signed-off-by: Remington Steed <rjs7 at calvin.edu>

diff --git a/docs/installation/server_upgrade.txt b/docs/installation/server_upgrade.txt
index 251796d..3aee08d 100644
--- a/docs/installation/server_upgrade.txt
+++ b/docs/installation/server_upgrade.txt
@@ -176,24 +176,56 @@ stock upgrade script that require further tailoring of the upgrade script.
 The backup also enables you to cleanly restore your production data if
 anything goes wrong during the upgrade.
 
+[NOTE]
+=============
+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.6.1, you
+would run the following upgrade scripts:
+
+- 2.5.1-2.5.2-upgrade-db.sql
+- 2.5.2-2.5.3-upgrade-db.sql
+- 2.5.3-2.6.0-upgrade-db.sql (this is a major version upgrade)
+- 2.6.0-2.6.1-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.6.1), use
+the same logic to utilize the provided major version upgrade scripts. For
+example:
+
+- 2.3-2.4.0-upgrade-db.sql
+- 2.3-2.4-supplemental.sh
+- (run all incremental scripts from 2.4.0 to 2.4.3)
+- 2.4.3-2.5.0-upgrade-db.sql
+- (run all incremental scripts from 2.5.0 to 2.5.3)
+- 2.5.3-2.6.0-upgrade-db.sql
+- 2.6.0-2.6.1-upgrade-db.sql
+=============
+
 [CAUTION]
 Pay attention to error output as you run the upgrade scripts. If you encounter errors
 that you cannot resolve yourself through additional troubleshooting, please
 report the errors to the http://evergreen-ils.org/communicate/mailing-lists/[Evergreen
 Technical Discussion List].
 
-Run the following steps as a user with the ability to connect to the
-database server. 
+Run the following steps (including other upgrade scripts, as noted above)
+as a user with the ability to connect to the database server.
 
 [source, bash]
 ----------------------------------------------------------
 cd /home/opensrf/Evergreen-ILS-2.6.1/Open-ILS/src/sql/Pg
 psql -U evergreen -h localhost -f version-upgrade/2.5.3-2.6.0-upgrade-db.sql evergreen
-psql -U evergreen -h localhost -f version-upgrade/2.6.0-2.6.1-upgrade-db.sql evergreen
 ----------------------------------------------------------
 
-[NOTE]
-After the _2.5.3-2.6.0-upgrade-db.sql_script script finishes, you will see an note on how to reingest your bib records. You may run this after you have completed the entire upgrade and tested your system. Reingesting records will take a long time depending on the number of bib records in your system.
+[TIP]
+After the `2.5.3-2.6.0-upgrade-db.sql` script finishes, you will see a
+note on how to reingest your bib records. You may run this after you have
+completed the entire upgrade and tested your system. Reingesting records
+may take a long time depending on the number of bib records in your system.
 
 Restart Evergreen and Test
 ~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Summary of changes:
 docs/installation/server_upgrade.txt |   42 +++++++++++++++++++++++++++++----
 1 files changed, 37 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list