[open-ils-commits] [GIT] Evergreen ILS branch master updated. 4c9c98e689f86a5f3b254fb33803f608e32a14c4

Evergreen Git git at git.evergreen-ils.org
Sun Nov 18 12:29:08 EST 2012


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, master has been updated
       via  4c9c98e689f86a5f3b254fb33803f608e32a14c4 (commit)
      from  224813acbb19d414e7faa4e5f4d3ab3ed0f0b420 (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 4c9c98e689f86a5f3b254fb33803f608e32a14c4
Author: Dan Scott <dscott at laurentian.ca>
Date:   Thu Sep 13 12:47:32 2012 -0400

    rel_2_1 does not have a config.upgrade_log.applied_to column
    
    Thanks to Michael Peters for running into & reporting this problem when
    attempting to upgrade from 2.1.2 to 2.1.3!
    
    Fix the version upgrade script.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1.2-2.1.3-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1.2-2.1.3-upgrade-db.sql
index bec59a4..8ee3b86 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1.2-2.1.3-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1.2-2.1.3-upgrade-db.sql
@@ -1,6 +1,6 @@
 --Upgrade Script for 2.1.2 to 2.1.3
 BEGIN;
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.1.3', :eg_version);
+INSERT INTO config.upgrade_log (version) VALUES ('2.1.3');
 -- Evergreen DB patch 0722.schema.acq-po-state-constraint.sql
 --
 
@@ -10,8 +10,8 @@ ALTER TABLE acq.purchase_order ADD CONSTRAINT valid_po_state
     CHECK (state IN ('new','pending','on-order','received','cancelled'));
 
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0725', :eg_version); -- gmcharlt/denials
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0726', :eg_version); -- denials
+INSERT INTO config.upgrade_log (version) VALUES ('0725'); -- gmcharlt/denials
+INSERT INTO config.upgrade_log (version) VALUES ('0726'); -- denials
 
 CREATE OR REPLACE FUNCTION evergreen.maintain_901 () RETURNS TRIGGER AS $func$
 use strict;

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

Summary of changes:
 .../Pg/version-upgrade/2.1.2-2.1.3-upgrade-db.sql  |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list