From: Galen Charlton Date: Wed, 11 Aug 2021 21:38:46 +0000 (-0400) Subject: LP#1894005: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2aa315c2e7333ca60c1258cfe5e154d225f1854d;p=evergreen%2Fpines.git LP#1894005: stamp DB update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e6842d06d0..1b1ea76803 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..de1aed52e4 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1271.data.org-setting-stripe-currency.sql @@ -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 index 64080b2d16..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-stripe-currency.sql +++ /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;