[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. efc11961a3f2a2670e0945d9af7482d8d1b45e3c

Evergreen Git git at git.evergreen-ils.org
Sun Nov 18 22:01:04 EST 2018


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_3_1 has been updated
       via  efc11961a3f2a2670e0945d9af7482d8d1b45e3c (commit)
       via  f77da2a00f574d82e01c4ca7744fb3fc0b563e7f (commit)
      from  8a1de53fe3730eac365cf31e9e70ee104cb4347a (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 efc11961a3f2a2670e0945d9af7482d8d1b45e3c
Author: Ben Shum <ben at evergreener.net>
Date:   Sun Nov 18 21:58:38 2018 -0500

    LP#1764542: Stamping upgrade script
    
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 0d73882..8e31f9c 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1134', :eg_version); -- dbwells/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1136', :eg_version); -- csharp/bshum
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1764542-mods33-update.sql b/Open-ILS/src/sql/Pg/upgrade/1136.schema.lp1764542-mods33-update.sql
similarity index 100%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1764542-mods33-update.sql
rename to Open-ILS/src/sql/Pg/upgrade/1136.schema.lp1764542-mods33-update.sql

commit f77da2a00f574d82e01c4ca7744fb3fc0b563e7f
Author: Chris Sharp <csharp at georgialibraries.org>
Date:   Mon Jun 4 13:10:31 2018 -0400

    LP#1764542 - Update older sites to MODS 3.3
    
    MODS 3.3 support was introduced in March 2009, but this
    change was never included in an upgrade script.  Older
    sites on 3.1+ will need to apply this update to avoid scary
    segmentation faults, and it should be harmless for newer
    sites and desirable for those on 3.0 or older.
    
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1764542-mods33-update.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1764542-mods33-update.sql
new file mode 100644
index 0000000..2ec2a57
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1764542-mods33-update.sql
@@ -0,0 +1,13 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- update mods33 data entered by 1100 with a format of 'mods32'
+-- harmless if you have not run 1100 yet
+UPDATE config.metabib_field SET format = 'mods33' WHERE format = 'mods32' and id in (38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50);
+
+-- change the default format to 'mods33'
+ALTER TABLE config.metabib_field ALTER COLUMN format SET DEFAULT 'mods33'::text;
+
+COMMIT;
+

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

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 .../1136.schema.lp1764542-mods33-update.sql        |   13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/1136.schema.lp1764542-mods33-update.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list