Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
name TEXT NOT NULL REFERENCES config.workstation_setting_type (name)
ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED,
- value JSON NOT NULL
+ value JSON NOT NULL,
+ CONSTRAINT ws_once_per_key UNIQUE (workstation, name)
);
CREATE INDEX actor_workstation_setting_workstation_idx
)
);
+ALTER TABLE actor.workstation_setting
+ ADD CONSTRAINT ws_once_per_key UNIQUE (workstation, name);
COMMIT;