mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: log tailnet tunnels to the connection log (#27423)
Co-authored-by: Chris DiGiamo <cd@anthropic.com> Co-authored-by: Chris DiGiamo <cdigiamo@anthropic.com>
This commit is contained in:
co-authored by
Chris DiGiamo
Chris DiGiamo
parent
8cc7f2bb0e
commit
1a6a8be96c
@@ -0,0 +1,8 @@
|
||||
-- The 'tunnel' enum value is intentionally not removed. Postgres cannot
|
||||
-- drop an enum value in place; removing it would require recreating
|
||||
-- connection_type and rewriting the connection_logs type column, which
|
||||
-- takes an exclusive lock on the table and would have to DELETE all
|
||||
-- tunnel rows (audit data) because they cannot exist in the old type.
|
||||
-- Leaving the value in place is harmless: old code never queries for it
|
||||
-- and renders unknown types without error. This matches the precedent
|
||||
-- of other enum-value additions (e.g. 000517, 000531).
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TYPE connection_type ADD VALUE IF NOT EXISTS 'tunnel';
|
||||
Reference in New Issue
Block a user