Files
rust-discovery/migrations/0013_windows_inventory_scope.sql
T
2026-11-13 16:18:04 +01:00

7 lines
423 B
SQL

-- Add only the independently validated Windows passive snapshot scope.
-- Existing observations, tenant RLS, composite identity foreign keys and sequence
-- uniqueness remain intact; an arbitrary source label is still rejected.
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'));