From: Mike Rylander Date: Fri, 28 Oct 2011 15:09:32 +0000 (-0400) Subject: Stamping upgrade script for YAOUS-target-when-closed X-Git-Tag: sprint4-merge-nov22~4873 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a378a358cf0abdc21c74e730262838fd77f25450;p=working%2FEvergreen.git Stamping upgrade script for YAOUS-target-when-closed 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 923402449d..31a7ac4912 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 ('0643', :eg_version); -- miker/tsbere +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0644', :eg_version); -- senator/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql new file mode 100644 index 0000000000..de9a16b5ba --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql @@ -0,0 +1,24 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0644', :eg_version); + +INSERT into config.org_unit_setting_type (name, grp, label, description, datatype) VALUES +( 'circ.holds.target_when_closed', 'circ', + oils_i18n_gettext('circ.holds.target_when_closed', + 'Target copies for a hold even if copy''s circ lib is closed', + 'coust', 'label'), + oils_i18n_gettext('circ.holds.target_when_closed', + 'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table).', + 'coust', 'description'), + 'bool'), +( 'circ.holds.target_when_closed_if_at_pickup_lib', 'circ', + oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib', + 'Target copies for a hold even if copy''s circ lib is closed IF the circ lib is the hold''s pickup lib', + 'coust', 'label'), + oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib', + 'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table) IF AND ONLY IF the copy''s circ lib is the same as the hold''s pickup lib.', + 'coust', 'description'), + 'bool') +; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql deleted file mode 100644 index 0ab7a08eab..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql +++ /dev/null @@ -1,24 +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 -( 'circ.holds.target_when_closed', 'circ', - oils_i18n_gettext('circ.holds.target_when_closed', - 'Target copies for a hold even if copy''s circ lib is closed', - 'coust', 'label'), - oils_i18n_gettext('circ.holds.target_when_closed', - 'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table).', - 'coust', 'description'), - 'bool'), -( 'circ.holds.target_when_closed_if_at_pickup_lib', 'circ', - oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib', - 'Target copies for a hold even if copy''s circ lib is closed IF the circ lib is the hold''s pickup lib', - 'coust', 'label'), - oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib', - 'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table) IF AND ONLY IF the copy''s circ lib is the same as the hold''s pickup lib.', - 'coust', 'description'), - 'bool') -; - -COMMIT;