LP#1894005: stamp DB update
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 11 Aug 2021 21:38:46 +0000 (17:38 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 11 Aug 2021 21:38:46 +0000 (17:38 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1271.data.org-setting-stripe-currency.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-stripe-currency.sql [deleted file]

index e6842d0..1b1ea76 100644 (file)
@@ -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 ('1270', :eg_version); -- sandbergja/mllewellyn/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1271', :eg_version); -- phasefx/tmcanna/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1271.data.org-setting-stripe-currency.sql b/Open-ILS/src/sql/Pg/upgrade/1271.data.org-setting-stripe-currency.sql
new file mode 100644 (file)
index 0000000..de1aed5
--- /dev/null
@@ -0,0 +1,26 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1271', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+    (grp, name, datatype, label, description, update_perm, view_perm)
+VALUES (
+    'credit',
+    'credit.processor.stripe.currency', 'string',
+    oils_i18n_gettext(
+        'credit.processor.stripe.currency',
+        'Stripe ISO 4217 currency code',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'credit.processor.stripe.currency',
+        'Use an all lowercase version of a Stripe-supported ISO 4217 currency code.  Defaults to "usd"',
+        'coust',
+        'description'
+    ),
+    (SELECT id FROM permission.perm_list WHERE code = 'ADMIN_CREDIT_CARD_PROCESSING'),
+    (SELECT id FROM permission.perm_list WHERE code = 'VIEW_CREDIT_CARD_PROCESSING')
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-stripe-currency.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-stripe-currency.sql
deleted file mode 100644 (file)
index 64080b2..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type
-    (grp, name, datatype, label, description, update_perm, view_perm)
-VALUES (
-    'credit',
-    'credit.processor.stripe.currency', 'string',
-    oils_i18n_gettext(
-        'credit.processor.stripe.currency',
-        'Stripe ISO 4217 currency code',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'credit.processor.stripe.currency',
-        'Use an all lowercase version of a Stripe-supported ISO 4217 currency code.  Defaults to "usd"',
-        'coust',
-        'description'
-    ),
-    (SELECT id FROM permission.perm_list WHERE code = 'ADMIN_CREDIT_CARD_PROCESSING'),
-    (SELECT id FROM permission.perm_list WHERE code = 'VIEW_CREDIT_CARD_PROCESSING')
-);
-
-COMMIT;