From 7d54f8e0bbea079b6669f2a943d32bde9ac2c5f4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 27 Jun 2011 13:20:52 -0400 Subject: [PATCH] Unstamped upgrade script for circ.lost.generate_overdue_on_checkin seed data Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- ...ata.ou_setting_generate_overdue_on_lost.sql.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.ou_setting_generate_overdue_on_lost.sql.sql 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; -- 2.11.0