From: Kathy Lussier Date: Thu, 22 Feb 2018 02:01:22 +0000 (-0500) Subject: LP#1694058: Stamping upgrade script for duplicate holds coust X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=986a2d011726f254e6a73f06382a76d91ce88018;p=evergreen%2Fpines.git LP#1694058: Stamping upgrade script for duplicate holds coust Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 04bc915343..1d074f18c2 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,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 ('1088', :eg_version); -- miker/dyrcona +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1089', :eg_version); -- dyrcona/kmlussier CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1089.data.max_duplicate_holds_coust.sql b/Open-ILS/src/sql/Pg/upgrade/1089.data.max_duplicate_holds_coust.sql new file mode 100644 index 0000000000..c4bf1a7f03 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1089.data.max_duplicate_holds_coust.sql @@ -0,0 +1,20 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1089', :eg_version); + +-- Add the circ.holds.max_duplicate_holds org. unit setting type. +INSERT into config.org_unit_setting_type +( name, grp, label, description, datatype, fm_class ) +VALUES +( 'circ.holds.max_duplicate_holds', 'holds', + oils_i18n_gettext( + 'circ.holds.max_duplicate_holds', + 'Maximum number of duplicate holds allowed.', + 'coust', 'label'), + oils_i18n_gettext( + 'circ.holds.max_duplicate_holds', + 'Maximum number of duplicate title or metarecord holds allowed per patron.', + 'coust', 'description'), + 'integer', null ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.max_duplicate_holds_coust.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.max_duplicate_holds_coust.sql deleted file mode 100644 index 93e4a4fa7b..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.max_duplicate_holds_coust.sql +++ /dev/null @@ -1,20 +0,0 @@ -BEGIN; - --- INSERT INTO config.upgrade_log (version, applied_to) VALUES ('XXXX', :eg_version); - --- Add the circ.holds.max_duplicate_holds org. unit setting type. -INSERT into config.org_unit_setting_type -( name, grp, label, description, datatype, fm_class ) -VALUES -( 'circ.holds.max_duplicate_holds', 'holds', - oils_i18n_gettext( - 'circ.holds.max_duplicate_holds', - 'Maximum number of duplicate holds allowed.', - 'coust', 'label'), - oils_i18n_gettext( - 'circ.holds.max_duplicate_holds', - 'Maximum number of duplicate title or metarecord holds allowed per patron.', - 'coust', 'description'), - 'integer', null ); - -COMMIT;