From 3ac6d27f72744df19547c043e58658cb0c26b413 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 23 Oct 2009 13:38:21 +0000 Subject: [PATCH] org setting to reset hold req time on uncancel git-svn-id: svn://svn.open-ils.org/ILS/trunk@14575 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 8 ++++++++ .../upgrade/0051.data.org-setting-uncancel-hold-reset.sql | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0051.data.org-setting-uncancel-hold-reset.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 334e3ffe43..fca83223a1 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0050'); -- Scott McKellar +INSERT INTO config.upgrade_log (version) VALUES ('0051'); -- berick CREATE TABLE config.bib_source ( diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index d662b81944..7f80ded508 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2303,3 +2303,11 @@ INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) 'interval' ); +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.holds.uncancel.reset_request_time', + 'Holds: Reset request time on un-cancel', + 'When a holds is uncanceled, reset the request time to push it to the end of the queue', + 'bool' + ); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0051.data.org-setting-uncancel-hold-reset.sql b/Open-ILS/src/sql/Pg/upgrade/0051.data.org-setting-uncancel-hold-reset.sql new file mode 100644 index 0000000000..b0e0d590c1 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0051.data.org-setting-uncancel-hold-reset.sql @@ -0,0 +1,13 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0051'); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.holds.uncancel.reset_request_time', + 'Holds: Reset request time on un-cancel', + 'When a holds is uncanceled, reset the request time to push it to the end of the queue', + 'bool' + ); + +COMMIT; -- 2.11.0