mirror of
https://github.com/coder/coder.git
synced 2026-06-04 13:38:21 +00:00
23f7a4b3b2
Remove the foreign key constraint from boundary_logs.session_id to boundary_sessions.id. This allows logs to be inserted even when the session row does not yet exist (e.g. transient DB error on first batch). The session is created lazily on each batch, so a subsequent successful batch will create the session row, retroactively linking the earlier orphaned logs.