[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. 9f65fc12518b35ece74c58bc43d881e14cd349fa

Evergreen Git git at git.evergreen-ils.org
Wed Apr 19 14:25:45 EDT 2017


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_12 has been updated
       via  9f65fc12518b35ece74c58bc43d881e14cd349fa (commit)
       via  9d939e7a625597c50a5c80826f42e1f91282c6f3 (commit)
      from  6a162197d372409e4cb203fd84f981b5d5daa5a6 (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 9f65fc12518b35ece74c58bc43d881e14cd349fa
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Wed Apr 19 14:23:24 2017 -0400

    2.10.10-2.10.11 schema update
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql
new file mode 100644
index 0000000..de5171e
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql
@@ -0,0 +1,45 @@
+--Upgrade Script for 2.10.10 to 2.10.11
+\set eg_version '''2.10.11'''
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1030', :eg_version);
+
+CREATE OR REPLACE FUNCTION evergreen.oils_xslt_process(TEXT, TEXT) RETURNS TEXT AS $func$
+  use strict;
+
+  use XML::LibXSLT;
+  use XML::LibXML;
+
+  my $doc = shift;
+  my $xslt = shift;
+
+  # The following approach uses the older XML::LibXML 1.69 / XML::LibXSLT 1.68
+  # methods of parsing XML documents and stylesheets, in the hopes of broader
+  # compatibility with distributions
+  my $parser = $_SHARED{'_xslt_process'}{parsers}{xml} || XML::LibXML->new();
+
+  # Cache the XML parser, if we do not already have one
+  $_SHARED{'_xslt_process'}{parsers}{xml} = $parser
+    unless ($_SHARED{'_xslt_process'}{parsers}{xml});
+
+  my $xslt_parser = $_SHARED{'_xslt_process'}{parsers}{xslt} || XML::LibXSLT->new();
+
+  # Cache the XSLT processor, if we do not already have one
+  $_SHARED{'_xslt_process'}{parsers}{xslt} = $xslt_parser
+    unless ($_SHARED{'_xslt_process'}{parsers}{xslt});
+
+  my $stylesheet = $_SHARED{'_xslt_process'}{stylesheets}{$xslt} ||
+    $xslt_parser->parse_stylesheet( $parser->parse_string($xslt) );
+
+  $_SHARED{'_xslt_process'}{stylesheets}{$xslt} = $stylesheet
+    unless ($_SHARED{'_xslt_process'}{stylesheets}{$xslt});
+
+  return $stylesheet->output_as_chars(
+    $stylesheet->transform(
+      $parser->parse_string($doc)
+    )
+  );
+
+$func$ LANGUAGE 'plperlu' STRICT IMMUTABLE;
+
+COMMIT;

commit 9d939e7a625597c50a5c80826f42e1f91282c6f3
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Thu Feb 16 15:43:21 2017 -0500

    schema update script for 2.10.10
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.10.9-2.10.10-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.10.9-2.10.10-upgrade-db.sql
new file mode 100644
index 0000000..92ef8b3
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.10.9-2.10.10-upgrade-db.sql
@@ -0,0 +1,17 @@
+--Upgrade Script for 2.10.9 to 2.10.10
+\set eg_version '''2.10.10'''
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1018', :eg_version);
+
+UPDATE config.org_unit_setting_type
+    SET view_perm = (SELECT id FROM permission.perm_list
+        WHERE code = 'VIEW_CREDIT_CARD_PROCESSING' LIMIT 1)
+    WHERE name LIKE 'credit.processor.stripe%' AND view_perm IS NULL;
+
+UPDATE config.org_unit_setting_type
+    SET update_perm = (SELECT id FROM permission.perm_list
+        WHERE code = 'ADMIN_CREDIT_CARD_PROCESSING' LIMIT 1)
+    WHERE name LIKE 'credit.processor.stripe%' AND update_perm IS NULL;
+
+COMMIT;

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

Summary of changes:
 .../2.10.10-2.10.11-upgrade-db.sql}                |    2 ++
 .../2.10.9-2.10.10-upgrade-db.sql}                 |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
 copy Open-ILS/src/sql/Pg/{upgrade/1030.function.oils_xslt_process_utf8_fix.sql => version-upgrade/2.10.10-2.10.11-upgrade-db.sql} (95%)
 copy Open-ILS/src/sql/Pg/{upgrade/1018.data.coust_view_perms_stripe.sql => version-upgrade/2.10.9-2.10.10-upgrade-db.sql} (88%)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list