fix(device-plane): correct gateway receipt immutable trigger

This commit is contained in:
Codex
2026-08-12 00:20:33 +03:00
parent 1e01161a83
commit 3a13f0effc
2 changed files with 3 additions and 1 deletions
@@ -61,6 +61,6 @@ create trigger device_gateway_message_receipts_immutable_guard
before update or delete or truncate
on device_gateway_message_receipts
for each statement
execute function reject_device_immutable_record_mutation();
execute function device_reject_immutable_mutation();
commit;
@@ -19,6 +19,8 @@ test("gateway receipts persist only typed bounded Core acceptance evidence", asy
assert.match(sql, /payload_schema_ref text not null/);
assert.match(sql, /payload jsonb not null/);
assert.match(sql, /device_gateway_message_receipts_immutable_guard/);
assert.match(sql, /execute function device_reject_immutable_mutation\(\)/);
assert.doesNotMatch(sql, /execute function reject_device_immutable_record_mutation\(\)/);
assert.doesNotMatch(sql, /raw_packet|raw_identifier|password|token|secret/i);
assert.doesNotMatch(sql, /insert\s+into|arusnavi|gelios|\bb2\b|imei/i);
});