mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
7 lines
399 B
SQL
7 lines
399 B
SQL
-- Drop the foreign key so that boundary logs can be inserted before
|
|
-- the session row exists. The session is created lazily and may fail
|
|
-- on transient errors; removing the FK lets logs persist regardless.
|
|
-- The session row will be created on a subsequent batch, retroactively
|
|
-- linking the orphaned logs via session_id.
|
|
ALTER TABLE boundary_logs DROP CONSTRAINT boundary_logs_session_id_fkey;
|