Files
coder/coderd/database/migrations/000521_drop_boundary_logs_session_fk.up.sql
T
Sas Swart 6a02f1c626 chore: renumber migration to drop agent firewall foreign key (#26372)
Renumber migration to drop agent firewall foreign key.
2026-06-15 11:32:29 +00:00

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;