From: Bill Erickson Date: Fri, 23 Mar 2012 21:03:47 +0000 (-0400) Subject: Stamped upgrade for 'allow fines during closings' X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=66a470a28d133da13a60de76a56008aa1252adec;p=contrib%2FConifer.git Stamped upgrade for 'allow fines during closings' Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e826a0662a..02d4aa8934 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 ('0691', :eg_version); -- senator/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0692', :eg_version); -- miker/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0692.data.fine-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/0692.data.fine-when-closed.sql new file mode 100644 index 0000000000..e55ee2fc14 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0692.data.fine-when-closed.sql @@ -0,0 +1,25 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0693', :eg_version); + +INSERT INTO config.org_unit_setting_type + (name, label, description, grp, datatype) + VALUES ( + 'circ.fines.charge_when_closed', + oils_i18n_gettext( + 'circ.fines.charge_when_closed', + 'Charge fines on overdue circulations when closed', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.fines.charge_when_closed', + 'Normally, fines are not charged when a library is closed. When set to True, fines will be charged during scheduled closings and normal weekly closed days.', + 'coust', + 'description' + ), + 'circ', + 'bool' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.fine-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.fine-when-closed.sql deleted file mode 100644 index e3989cd105..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.fine-when-closed.sql +++ /dev/null @@ -1,21 +0,0 @@ - -INSERT INTO config.org_unit_setting_type - (name, label, description, grp, datatype) - VALUES ( - 'circ.fines.charge_when_closed', - oils_i18n_gettext( - 'circ.fines.charge_when_closed', - 'Charge fines on overdue circulations when closed', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'circ.fines.charge_when_closed', - 'Normally, fines are not charged when a library is closed. When set to True, fines will be charged during scheduled closings and normal weekly closed days.', - 'coust', - 'description' - ), - 'circ', - 'bool' - ); -