mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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;
|