Allow OPNsense snapshots in the tenant-bound observations table

This commit is contained in:
2026-11-19 19:54:55 +01:00
parent 89a58c609c
commit d05caf6fd3
+6
View File
@@ -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;