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

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, master has been updated
       via  2c826a4e4819182b49314aa1f9ffa8efb376d9bc (commit)
       via  644b37b8c859e1e621dbe494b8df3b6745e3e5e2 (commit)
      from  6e158f0c01bce49274242853d3cbefe612fddbde (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 2c826a4e4819182b49314aa1f9ffa8efb376d9bc
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 644b37b8c859e1e621dbe494b8df3b6745e3e5e2
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