From: Bill Erickson Date: Mon, 27 Jun 2011 17:20:52 +0000 (-0400) Subject: Unstamped upgrade script for circ.lost.generate_overdue_on_checkin seed data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d54f8e0bbea079b6669f2a943d32bde9ac2c5f4;p=evergreen%2Fmasslnc.git Unstamped upgrade script for circ.lost.generate_overdue_on_checkin seed data Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ou_setting_generate_overdue_on_lost.sql.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ou_setting_generate_overdue_on_lost.sql.sql new file mode 100644 index 0000000000..55e983a828 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ou_setting_generate_overdue_on_lost.sql.sql @@ -0,0 +1,24 @@ +-- Evergreen DB patch XXXX.data.ou_setting_generate_overdue_on_lost.sql.sql +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES ( + 'circ.lost.generate_overdue_on_checkin', + oils_i18n_gettext( + 'circ.lost.generate_overdue_on_checkin', + 'Circ: Lost Checkin Generates New Overdues', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.lost.generate_overdue_on_checkin', + 'Enabling this setting causes retroactive creation of not-yet-existing overdue fines on lost item checkin, up to the point of checkin time (or max fines is reached). This is different than "restore overdue on lost", because it only creates new overdue fines. Use both settings together to get the full complement of overdue fines for a lost item', + 'coust', + 'label' + ), + 'bool' +); + +COMMIT;