mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix(coderd/workspaceapps): prevent race in workspace app audit session updates (#17020)
Fixes coder/internal#520
This commit is contained in:
committed by
GitHub
parent
68624092a4
commit
72d9876c76
@ -0,0 +1,2 @@
|
||||
ALTER TABLE workspace_app_audit_sessions
|
||||
DROP COLUMN id;
|
@ -0,0 +1,5 @@
|
||||
-- Add column with default to fix existing rows.
|
||||
ALTER TABLE workspace_app_audit_sessions
|
||||
ADD COLUMN id UUID PRIMARY KEY DEFAULT gen_random_uuid();
|
||||
ALTER TABLE workspace_app_audit_sessions
|
||||
ALTER COLUMN id DROP DEFAULT;
|
Reference in New Issue
Block a user