mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
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;
|