Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: backfill from workspace_agent_log_sources
  • Loading branch information
DanielleMaywood committed Sep 20, 2024
commit 7858799f7204368c7ead13d61f78b13cc751a31a
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
ALTER TABLE workspace_agent_scripts ADD COLUMN display_name text NOT NULL DEFAULT '';
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;
Loading