BEGIN;
+ALTER TABLE actor.workstation_setting
+ ADD CONSTRAINT ws_once_per_key UNIQUE (workstation, name);
+
DO $INSERT$
BEGIN
IF evergreen.insert_on_deploy() THEN
)
);
+ 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$;