From: Mike Rylander Date: Fri, 25 May 2012 15:16:50 +0000 (-0400) Subject: Stamping upgrade script for TPAC hold override setting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a8c34b4547e92bd004fbfbad2734b125f5fc082c;p=contrib%2FConifer.git Stamping upgrade script for TPAC hold override setting 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 a5c7d98497..9ccef4edd7 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -87,7 +87,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 ('0713', :eg_version); -- senator/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0714', :eg_version); -- berick/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0714.data.tpac-override-hold-ou-setting.sql b/Open-ILS/src/sql/Pg/upgrade/0714.data.tpac-override-hold-ou-setting.sql new file mode 100644 index 0000000000..56d1e5be33 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0714.data.tpac-override-hold-ou-setting.sql @@ -0,0 +1,28 @@ + +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0714', :eg_version); + +INSERT into config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'opac.patron.auto_overide_hold_events', + 'opac', + oils_i18n_gettext( + 'opac.patron.auto_overide_hold_events', + 'Auto-Override Permitted Hold Blocks (Patrons)', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'opac.patron.auto_overide_hold_events', + 'When a patron places a hold that fails and the patron has the correct permission ' || + 'to override the hold, automatically override the hold without presenting a message ' || + 'to the patron and requiring that the patron make a decision to override', + 'coust', + 'description' + ), + 'bool' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.tpac-override-hold-ou-setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.tpac-override-hold-ou-setting.sql deleted file mode 100644 index 9c9da8b895..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.tpac-override-hold-ou-setting.sql +++ /dev/null @@ -1,28 +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 ( - 'opac.patron.auto_overide_hold_events', - 'opac', - oils_i18n_gettext( - 'opac.patron.auto_overide_hold_events', - 'Auto-Override Permitted Hold Blocks (Patrons)', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'opac.patron.auto_overide_hold_events', - 'When a patron places a hold that fails and the patron has the correct permission ' || - 'to override the hold, automatically override the hold without presenting a message ' || - 'to the patron and requiring that the patron make a decision to override', - 'coust', - 'description' - ), - 'bool' - ); - -COMMIT;