Allow OPNsense snapshots in the tenant-bound observations table
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
SET LOCAL lock_timeout = '3s';
|
||||||
|
SET LOCAL statement_timeout = '30s';
|
||||||
|
ALTER TABLE observations DROP CONSTRAINT observations_source_id_check;
|
||||||
|
ALTER TABLE observations ADD CONSTRAINT observations_source_id_check
|
||||||
|
CHECK (source_id IN ('linux.base','windows.base','agent.update','opnsense.base')) NOT VALID;
|
||||||
|
ALTER TABLE observations VALIDATE CONSTRAINT observations_source_id_check;
|
||||||
Reference in New Issue
Block a user