LP#16663435: stamp database update
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Feb 2017 17:13:05 +0000 (12:13 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Feb 2017 21:59:59 +0000 (16:59 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1018.data.coust_view_perms_stripe.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_view_perms_stripe.sql [deleted file]

index b2cb8cb..e7323d5 100644 (file)
@@ -91,7 +91,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 ('1017', :eg_version); -- gmcharlt/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1018', :eg_version); -- csharp/Dyrcona/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1018.data.coust_view_perms_stripe.sql b/Open-ILS/src/sql/Pg/upgrade/1018.data.coust_view_perms_stripe.sql
new file mode 100644 (file)
index 0000000..34754f9
--- /dev/null
@@ -0,0 +1,15 @@
+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;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_view_perms_stripe.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_view_perms_stripe.sql
deleted file mode 100644 (file)
index 438ec30..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :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;