mirror of
https://github.com/coder/coder.git
synced 2026-06-03 13:08:25 +00:00
72d9876c76
Fixes coder/internal#520
6 lines
221 B
SQL
6 lines
221 B
SQL
-- 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;
|