schema update script for 2.10.10
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Feb 2017 20:43:21 +0000 (15:43 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 19 Apr 2017 18:25:29 +0000 (14:25 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/version-upgrade/2.10.9-2.10.10-upgrade-db.sql [new file with mode: 0644]

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 (file)
index 0000000..92ef8b3
--- /dev/null
@@ -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;