From: Bill Erickson Date: Mon, 25 Jul 2011 21:15:44 +0000 (-0400) Subject: Stamped upgrade script for uncheck_bills_and_unfocus_payment_box X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=70fde1d382583af2a0ac9c909660a10b55021701;p=evergreen%2Fmasslnc.git Stamped upgrade script for uncheck_bills_and_unfocus_payment_box 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 175a63c350..cb783e2134 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 ('0583', :eg_version); -- miker/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0584', :eg_version); -- phasefx/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0584.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql b/Open-ILS/src/sql/Pg/upgrade/0584.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql new file mode 100644 index 0000000000..64dbce460f --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0584.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql @@ -0,0 +1,30 @@ +-- Evergreen DB patch XXXX.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql +-- +-- New org setting ui.circ.billing.uncheck_bills_and_unfocus_payment_box +-- +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0584', :eg_version); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', + oils_i18n_gettext( + 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', + 'GUI: Uncheck bills by default in the patron billing interface', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', + 'Uncheck bills by default in the patron billing interface,' + || ' and focus on the Uncheck All button instead of the' + || ' Payment Received field.', + 'coust', + 'description' + ), + 'bool' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql deleted file mode 100644 index 3856226e92..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Evergreen DB patch XXXX.data.org-setting-ui.circ.billing.uncheck_bills_and_unfocus_payment_box.sql --- --- New org setting ui.circ.billing.uncheck_bills_and_unfocus_payment_box --- -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) - VALUES ( - 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', - oils_i18n_gettext( - 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', - 'GUI: Uncheck bills by default in the patron billing interface', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'ui.circ.billing.uncheck_bills_and_unfocus_payment_box', - 'Uncheck bills by default in the patron billing interface,' - || ' and focus on the Uncheck All button instead of the' - || ' Payment Received field.', - 'coust', - 'description' - ), - 'bool' - ); - -COMMIT;