From: Bill Erickson Date: Tue, 13 Sep 2011 17:00:53 +0000 (-0400) Subject: Stamped upgrade for opac_payment_history_age_limit X-Git-Tag: sprint4-merge-nov22~5127 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b77e56f5ee450eacaec9b9ff51ec6ce6098faea8;p=working%2FEvergreen.git Stamped upgrade for opac_payment_history_age_limit ...which is a new org setting defining how far back to reach for payments to display in the payments history page in tpac. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 13427afe62..c29ae278e8 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0620', :eg_version); -- tsbere/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0621', :eg_version); -- berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql b/Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql new file mode 100644 index 0000000000..2268dfbe6d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql @@ -0,0 +1,17 @@ +-- Evergreen DB patch XXXX.data.opac_payment_history_age_limit.sql + +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0621', :eg_version); + +INSERT into config.org_unit_setting_type (name, label, description, datatype) +VALUES ( + 'opac.payment_history_age_limit', + oils_i18n_gettext('opac.payment_history_age_limit', + 'OPAC: Payment History Age Limit', 'coust', 'label'), + oils_i18n_gettext('opac.payment_history_age_limit', + 'The OPAC should not display payments by patrons that are older than any interval defined here.', 'coust', 'label'), + 'interval' +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql deleted file mode 100644 index f8790ef2bd..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql +++ /dev/null @@ -1,17 +0,0 @@ --- Evergreen DB patch XXXX.data.opac_payment_history_age_limit.sql - -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT into config.org_unit_setting_type (name, label, description, datatype) -VALUES ( - 'opac.payment_history_age_limit', - oils_i18n_gettext('opac.payment_history_age_limit', - 'OPAC: Payment History Age Limit', 'coust', 'label'), - oils_i18n_gettext('opac.payment_history_age_limit', - 'The OPAC should not display payments by patrons that are older than any interval defined here.', 'coust', 'label'), - 'interval' -); - -COMMIT;