[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 410d25c385b0fba65589e800be9f4ac16c36f93d
Evergreen Git
git at git.evergreen-ils.org
Wed Jul 11 12:32:17 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, rel_2_2 has been updated
via 410d25c385b0fba65589e800be9f4ac16c36f93d (commit)
from 177fa1efb25700a6219b57ee5c82f32929ed1b09 (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 410d25c385b0fba65589e800be9f4ac16c36f93d
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