From: Bill Erickson Date: Tue, 28 May 2019 21:42:04 +0000 (+0000) Subject: JBAS-2266 Hatch settings ported to kcls sql X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8650f16586cc98e7d5ee6b16938e7ed2b09551fd;p=working%2FEvergreen.git JBAS-2266 Hatch settings ported to kcls sql Signed-off-by: Bill Erickson --- diff --git a/KCLS/sql/schema/deploy/3.2-additions.sql b/KCLS/sql/schema/deploy/3.2-additions.sql index 7c0f697eeb..5ed994e672 100644 --- a/KCLS/sql/schema/deploy/3.2-additions.sql +++ b/KCLS/sql/schema/deploy/3.2-additions.sql @@ -3,6 +3,9 @@ BEGIN; +ALTER TABLE actor.workstation_setting + ADD CONSTRAINT ws_once_per_key UNIQUE (workstation, name); + DO $INSERT$ BEGIN IF evergreen.insert_on_deploy() THEN @@ -144,6 +147,54 @@ BEGIN ) ); + INSERT INTO config.workstation_setting_type (name, grp, datatype, label) + VALUES ( + 'eg.print.config.default', 'gui', 'object', + oils_i18n_gettext ( + 'eg.print.config.default', + 'Print config for default context', + 'cwst', 'label' + ) + ), ( + 'eg.print.config.receipt', 'gui', 'object', + oils_i18n_gettext ( + 'eg.print.config.receipt', + 'Print config for receipt context', + 'cwst', 'label' + ) + ), ( + 'eg.print.config.label', 'gui', 'object', + oils_i18n_gettext ( + 'eg.print.config.label', + 'Print config for label context', + 'cwst', 'label' + ) + ), ( + 'eg.print.config.mail', 'gui', 'object', + oils_i18n_gettext ( + 'eg.print.config.mail', + 'Print config for mail context', + 'cwst', 'label' + ) + ), ( + 'eg.print.config.offline', 'gui', 'object', + oils_i18n_gettext ( + 'eg.print.config.offline', + 'Print config for offline context', + 'cwst', 'label' + ) + ); + + INSERT INTO config.workstation_setting_type (name, grp, datatype, label) + VALUES ( + 'eg.hatch.enable.printing', 'gui', 'bool', + oils_i18n_gettext( + 'eg.hatch.enable.printing', + 'Use Hatch for printing', + 'cwst', 'label' + ) + ); + END IF; -- insert_on_deploy END $INSERT$;