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

Evergreen Git git at git.evergreen-ils.org
Wed Jul 11 12:32:00 EDT 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  bbf645e0f936ca4b0b5b29b070abfbdee29bb5dc (commit)
      from  a8338b6194cd5bded07210316ff9376a7865f5e0 (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 bbf645e0f936ca4b0b5b29b070abfbdee29bb5dc
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Wed Jul 11 10:54:44 2012 -0400

    Avoid problem with 2.1 -> 2.2 upgrade script issuing error
    
    The error is:
        > ERROR: cannot ALTER TABLE "thesaurus" because it has pending
        > trigger events.
    
    Reported by Justin Hopkins, George Duimovich, and Bill Erickson.
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Justin Hopkins <hopkinsju at gmail.com>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
index 6ec712d..f527d29 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
@@ -2730,7 +2730,7 @@ CREATE TABLE authority.control_set_bib_field (
 
 CREATE TABLE authority.thesaurus (
     code        TEXT    PRIMARY KEY,     -- MARC21 thesaurus code
-    control_set INT     NOT NULL REFERENCES authority.control_set (id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
+    control_set INT     REFERENCES authority.control_set (id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
     name        TEXT    NOT NULL UNIQUE, -- i18n
     description TEXT                     -- i18n
 );
@@ -12430,7 +12430,9 @@ SELECT SETVAL('config.coded_value_map_id_seq'::TEXT, (SELECT max(id) FROM config
 SELECT evergreen.upgrade_deps_block_check('0717', :eg_version);
 
 -- Allow un-mapped thesauri
-ALTER TABLE authority.thesaurus ALTER COLUMN control_set DROP NOT NULL;
+-- ALTER TABLE authority.thesaurus ALTER COLUMN control_set DROP NOT NULL;
+-- XXX The above line is now covered by changes to the
+-- "CREATE TABLE authority.thesaurus" statement further up.
 
 -- Don't tie "No attempt to code" to LoC
 UPDATE authority.thesaurus SET control_set = NULL WHERE code = '|';

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

Summary of changes:
 .../sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql  |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list