From 92877c78334c44c9609d653a57fb205a7abcce16 Mon Sep 17 00:00:00 2001 From: scottmk Date: Fri, 28 May 2010 16:40:39 +0000 Subject: [PATCH] Added org_unit_setting_type auth.persistent_login_interval M Open-ILS/src/sql/Pg/002.schema.config.sql A Open-ILS/src/sql/Pg/upgrade/0284.data.persistent-login-interval.sql M Open-ILS/src/sql/Pg/950.data.seed-values.sql git-svn-id: svn://svn.open-ils.org/ILS/trunk@16531 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 | 10 +++++++++- .../sql/Pg/upgrade/0284.data.persistent-login-interval.sql | 13 +++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0284.data.persistent-login-interval.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 8ed06cc60..7347bd9be 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -65,7 +65,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0283'); -- berick +INSERT INTO config.upgrade_log (version) VALUES ('0284'); -- Scott McKellar CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, 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 985eb006b..9dcbecd38 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4967,7 +4967,6 @@ INSERT INTO config.global_flag (name, label) -- defaults to enabled=FALSE ) ); - INSERT INTO config.global_flag (name,label,enabled) VALUES ( 'history.circ.retention_age', @@ -5009,3 +5008,12 @@ INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatyp 'integer' ); +-- 0281.data.persistent-login-interval.sql +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) +VALUES ( + 'auth.persistent_login_interval', + oils_i18n_gettext('auth.persistent_login_interval', 'Persistent Login Duration', 'coust', 'label'), + oils_i18n_gettext('auth.persistent_login_interval', 'How long a persistent login lasts. E.g. ''2 weeks''', 'coust', 'description'), + 'interval' +); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0284.data.persistent-login-interval.sql b/Open-ILS/src/sql/Pg/upgrade/0284.data.persistent-login-interval.sql new file mode 100644 index 000000000..f88b171d7 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0284.data.persistent-login-interval.sql @@ -0,0 +1,13 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0284'); -- Scott McKellar + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) +VALUES ( + 'auth.persistent_login_interval', + oils_i18n_gettext('auth.persistent_login_interval', 'Persistent Login Duration', 'coust', 'label'), + oils_i18n_gettext('auth.persistent_login_interval', 'How long a persistent login lasts. E.g. ''2 weeks''', 'coust', 'description'), + 'interval' +); + +COMMIT; -- 2.11.0