JBAS-2266 Hatch settings ported to kcls sql
authorBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 21:42:04 +0000 (21:42 +0000)
committerBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 21:42:04 +0000 (21:42 +0000)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/3.2-additions.sql

index 7c0f697..5ed994e 100644 (file)
@@ -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$;