Files
HealthLog/prisma/migrations/0300_notification_event_created_at_index/migration.sql
T
Marc-André Bombeck 1818bd874b fix(02-11): authorize guardian egress under lock
- Hold the managed-profile lock through every provider send\n- Add the notification event retention index and race coverage
2026-08-06 09:42:47 +02:00

6 lines
297 B
SQL

-- v1.37.0 — notification event retention deletes globally by created_at.
-- The dedup lookup index starts with record_user_id, so it cannot serve this
-- trailing-edge cleanup predicate efficiently.
CREATE INDEX "notification_events_created_at_idx"
ON "notification_events" ("created_at");