From: Dan Scott Date: Sun, 22 Jul 2012 20:01:38 +0000 (-0400) Subject: Wrap upgrade script for permanent bookbag lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=428e36c9335aec96e2f6d5015bd01ae507825676;p=evergreen%2Fpines.git Wrap upgrade script for permanent bookbag lists Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql b/Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql new file mode 100644 index 0000000000..476544380b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql @@ -0,0 +1,69 @@ +-- Evergreen DB patch 0718.data.add-to-permanent-bookbag.sql +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0718', :eg_version); + +INSERT into config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'opac.patron.temporary_list_warn', + 'opac', + oils_i18n_gettext( + 'opac.patron.temporary_list_warn', + 'Warn patrons when adding to a temporary book list', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'opac.patron.temporary_list_warn', + 'Present a warning dialog to the patron when a patron adds a book to a temporary book bag.', + 'coust', + 'description' + ), + 'bool' + ); + +INSERT INTO config.usr_setting_type + (name,grp,opac_visible,label,description,datatype) +VALUES ( + 'opac.temporary_list_no_warn', + 'opac', + TRUE, + oils_i18n_gettext( + 'opac.temporary_list_no_warn', + 'Opt out of warning when adding a book to a temporary book list', + 'cust', + 'label' + ), + oils_i18n_gettext( + 'opac.temporary_list_no_warn', + 'Opt out of warning when adding a book to a temporary book list', + 'cust', + 'description' + ), + 'bool' +); + +INSERT INTO config.usr_setting_type + (name,grp,opac_visible,label,description,datatype) +VALUES ( + 'opac.default_list', + 'opac', + FALSE, + oils_i18n_gettext( + 'opac.default_list', + 'Default list to use when adding to a bookbag', + 'cust', + 'label' + ), + oils_i18n_gettext( + 'opac.default_list', + 'Default list to use when adding to a bookbag', + 'cust', + 'description' + ), + 'integer' +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql deleted file mode 100644 index 5c16367b32..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql +++ /dev/null @@ -1,68 +0,0 @@ -BEGIN; - --- Check for the upgrade deps block -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT into config.org_unit_setting_type - (name, grp, label, description, datatype) - VALUES ( - 'opac.patron.temporary_list_warn', - 'opac', - oils_i18n_gettext( - 'opac.patron.temporary_list_warn', - 'Warn patrons when adding to a temporary book list', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'opac.patron.temporary_list_warn', - 'Present a warning dialog to the patron when a patron adds a book to a temporary book bag.', - 'coust', - 'description' - ), - 'bool' - ); - -INSERT INTO config.usr_setting_type - (name,grp,opac_visible,label,description,datatype) -VALUES ( - 'opac.temporary_list_no_warn', - 'opac', - TRUE, - oils_i18n_gettext( - 'opac.temporary_list_no_warn', - 'Opt out of warning when adding a book to a temporary book list', - 'cust', - 'label' - ), - oils_i18n_gettext( - 'opac.temporary_list_no_warn', - 'Opt out of warning when adding a book to a temporary book list', - 'cust', - 'description' - ), - 'bool' -); - -INSERT INTO config.usr_setting_type - (name,grp,opac_visible,label,description,datatype) -VALUES ( - 'opac.default_list', - 'opac', - FALSE, - oils_i18n_gettext( - 'opac.default_list', - 'Default list to use when adding to a bookbag', - 'cust', - 'label' - ), - oils_i18n_gettext( - 'opac.default_list', - 'Default list to use when adding to a bookbag', - 'cust', - 'description' - ), - 'integer' -); - -COMMIT;