From: Mike Rylander Date: Sat, 16 Jul 2011 14:25:44 +0000 (-0400) Subject: Stamping upgrade script for "Opac Renewal at original circ library" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14504ab4e9f534776ab373c9bd69938fa97a5392;p=evergreen%2Fmasslnc.git Stamping upgrade script for "Opac Renewal at original circ library" 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 5adb85517f..da9bebb4b0 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 ('0580', :eg_version); -- tsbere via miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0581', :eg_version); -- tsbere via miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql new file mode 100644 index 0000000000..d05998efce --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0581.schema.opac_renewal_reuse_circ_lib.sql @@ -0,0 +1,23 @@ +-- Evergreen DB patch 0581.schema.opac_renewal_reuse_circ_lib.sql +-- +-- +BEGIN; + + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0581', :eg_version); + +INSERT INTO config.global_flag (name, label, enabled) + VALUES ( + 'circ.opac_renewal.use_original_circ_lib', + oils_i18n_gettext( + 'circ.opac_renewal.use_original_circ_lib', + 'Circ: Use original circulation library on opac renewal instead of user home library', + 'cgf', + 'label' + ), + FALSE + ); + + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql deleted file mode 100644 index 92f859293b..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.opac_renewal_reuse_circ_lib.sql +++ /dev/null @@ -1,11 +0,0 @@ -INSERT INTO config.global_flag (name, label, enabled) - VALUES ( - 'circ.opac_renewal.use_original_circ_lib', - oils_i18n_gettext( - 'circ.opac_renewal.use_original_circ_lib', - 'Circ: Use original circulation library on opac renewal instead of user home library', - 'cgf', - 'label' - ), - FALSE - );