From: Mike Rylander Date: Tue, 9 Aug 2016 16:46:07 +0000 (-0400) Subject: Stamping upgrade for payment limits. X-Git-Tag: sprint4-merge-nov22~207 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e51f6070f186e9f5504c3e1da5a93e7627738599;p=working%2FEvergreen.git Stamping upgrade for payment limits. Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 8e08b18383..963eb2251d 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('0986', :eg_version); -- dpearl/dyrcona/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0987', :eg_version); -- jboyer/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql b/Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql new file mode 100644 index 0000000000..6ede64ecaa --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql @@ -0,0 +1,33 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0987', :eg_version); + +INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype ) + VALUES ( + 'ui.circ.billing.amount_limit', 'gui', + oils_i18n_gettext( + 'ui.circ.billing.amount_limit', + 'Maximum payment amount allowed.', + 'coust', 'label'), + oils_i18n_gettext( + 'ui.circ.billing.amount_limit', + 'The payment amount in the Patron Bills interface may not exceed the value of this setting.', + 'coust', 'description'), + 'currency' + ); + +INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype ) + VALUES ( + 'ui.circ.billing.amount_warn', 'gui', + oils_i18n_gettext( + 'ui.circ.billing.amount_warn', + 'Payment amount threshold for Are You Sure? dialog.', + 'coust', 'label'), + oils_i18n_gettext( + 'ui.circ.billing.amount_warn', + 'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.', + 'coust', 'description'), + 'currency' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql deleted file mode 100644 index d48593ead2..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql +++ /dev/null @@ -1,33 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype ) - VALUES ( - 'ui.circ.billing.amount_limit', 'gui', - oils_i18n_gettext( - 'ui.circ.billing.amount_limit', - 'Maximum payment amount allowed.', - 'coust', 'label'), - oils_i18n_gettext( - 'ui.circ.billing.amount_limit', - 'The payment amount in the Patron Bills interface may not exceed the value of this setting.', - 'coust', 'description'), - 'currency' - ); - -INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype ) - VALUES ( - 'ui.circ.billing.amount_warn', 'gui', - oils_i18n_gettext( - 'ui.circ.billing.amount_warn', - 'Payment amount threshold for Are You Sure? dialog.', - 'coust', 'label'), - oils_i18n_gettext( - 'ui.circ.billing.amount_warn', - 'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.', - 'coust', 'description'), - 'currency' - ); - -COMMIT;