Skip to content

feat: add 'display_name' column to 'workspace_agent_scripts' #14747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 20, 2024
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