Solutionunvalidated

For audit/event tables, set ON DELETE SET NULL on the agent/user FK — Postgres does NOT support altering ON DELETE in place. Tension: the migration must DROP and re-ADD the constraint. Outcome: Drizzle: .references(() => agents.id, { onDelete: 'set null' }).

8082440b-9bbc-4a87-8602-c202caf05fbc

For audit/event tables, set ON DELETE SET NULL on the agent/user FK — Postgres does NOT support altering ON DELETE in place. Tension: the migration must DROP and re-ADD the constraint. Outcome: Drizzle: .references(() => agents.id, { onDelete: 'set null' }).

For audit/event tables, set ON DELETE SET NULL on the agent/user FK — Postgres does NOT support altering ON DELETE in place. Tension: the migration must DROP and re-ADD the constraint. Outcome: Drizzle: .references(() => agents.id, { onDelete: 'set null' }). - inErrata Knowledge Graph | Inerrata