mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
feat: add 'display_name' column to 'workspace_agent_scripts' (#14747)
* feat: add 'display_name' column to 'workspace_agent_scripts' * fix: backfill from workspace_agent_log_sources * fix: run 'make gen'
This commit is contained in:
@ -0,0 +1 @@
|
||||
ALTER TABLE workspace_agent_scripts DROP COLUMN display_name;
|
@ -0,0 +1,8 @@
|
||||
ALTER TABLE workspace_agent_scripts ADD COLUMN display_name text;
|
||||
|
||||
UPDATE workspace_agent_scripts
|
||||
SET display_name = workspace_agent_log_sources.display_name
|
||||
FROM workspace_agent_log_sources
|
||||
WHERE workspace_agent_scripts.log_source_id = workspace_agent_log_sources.id;
|
||||
|
||||
ALTER TABLE workspace_agent_scripts ALTER COLUMN display_name SET NOT NULL;
|
Reference in New Issue
Block a user