From 55d46cca57f5179356c7766fb5d430e6e4ce32c7 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 23 Nov 2009 22:10:47 +0000 Subject: [PATCH] added self-check org settings seed data for workstation/password required git-svn-id: svn://svn.open-ils.org/ILS/trunk@15017 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 | 13 +++++++++++++ .../upgrade/0089.data.org-setting-selfcheck-misc.sql | 18 ++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0089.data.org-setting-selfcheck-misc.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 2294ca13f8..0b06c6b12b 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 ('0088'); -- dbs +INSERT INTO config.upgrade_log (version) VALUES ('0089'); -- berick 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 d5382a9743..6cf53ca76b 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2594,3 +2594,16 @@ INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) 'bool' ); +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.selfcheck.workstation_required', + oils_i18n_gettext('circ.selfcheck.workstation_required', 'Selfcheck: Workstation Required', 'coust', 'label'), + oils_i18n_gettext('circ.selfcheck.workstation_required', 'All selfcheck stations must use a workstation', 'coust', 'description'), + 'bool' + ), ( + 'circ.selfcheck.patron_password_required', + oils_i18n_gettext('circ.selfcheck.patron_password_required', 'Selfcheck: Require Patron Password', 'coust', 'label'), + oils_i18n_gettext('circ.selfcheck.patron_password_required', 'Patron must log in with barcode and password at selfcheck station', 'coust', 'description'), + 'bool' + ); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0089.data.org-setting-selfcheck-misc.sql b/Open-ILS/src/sql/Pg/upgrade/0089.data.org-setting-selfcheck-misc.sql new file mode 100644 index 0000000000..2e4ca95009 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0089.data.org-setting-selfcheck-misc.sql @@ -0,0 +1,18 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0089'); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.selfcheck.workstation_required', + oils_i18n_gettext('circ.selfcheck.workstation_required', 'Selfcheck: Workstation Required', 'coust', 'label'), + oils_i18n_gettext('circ.selfcheck.workstation_required', 'All selfcheck stations must use a workstation', 'coust', 'description'), + 'bool' + ), ( + 'circ.selfcheck.patron_password_required', + oils_i18n_gettext('circ.selfcheck.patron_password_required', 'Selfcheck: Require Patron Password', 'coust', 'label'), + oils_i18n_gettext('circ.selfcheck.patron_password_required', 'Patron must log in with barcode and password at selfcheck station', 'coust', 'description'), + 'bool' + ); + +COMMIT; -- 2.11.0