Accept passive agent update observations with verified SQLx migration
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- Passive agent-update observations share the existing tenant/device-bound
|
||||
-- ingest path. Preserve both base scopes and every existing row/RLS/FK.
|
||||
-- SQLx applies this file transactionally and records its normal checksum.
|
||||
SET LOCAL lock_timeout = '3s';
|
||||
SET LOCAL statement_timeout = '15s';
|
||||
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')) NOT VALID;
|
||||
ALTER TABLE observations VALIDATE CONSTRAINT observations_source_id_check;
|
||||
Reference in New Issue
Block a user