Skip to content

Commit 823e87a

Browse files
committed
remove ownerid
1 parent 776a563 commit 823e87a

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6776,7 +6776,6 @@ func (q *FakeQuerier) GetWorkspacesAndAgentsByOwnerID(ctx context.Context, owner
67766776
out = append(out, database.GetWorkspacesAndAgentsByOwnerIDRow{
67776777
ID: w.ID,
67786778
Name: w.Name,
6779-
OwnerID: w.OwnerID,
67806779
JobStatus: job.JobStatus,
67816780
Transition: build.Transition,
67826781
Agents: outAgents,

coderd/database/dump.sql

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/migrations/000260_workspace_updates.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DECLARE
1010
BEGIN
1111
-- Write to the notification channel `new_workspace:owner_id`
1212
-- with the workspace id as the payload.
13-
PERFORM pg_notify('new_workspace:' || NEW.owner_id, NEW.id);
13+
PERFORM pg_notify('new_workspace:' || NEW.owner_id, NEW.id::text);
1414
RETURN NEW;
1515
END;
1616
$$;

coderd/database/queries.sql.go

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaces.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ UPDATE workspaces SET favorite = false WHERE id = @id;
692692
SELECT
693693
workspaces.id as id,
694694
workspaces.name as name,
695-
workspaces.owner_id as owner_id,
696695
job_status,
697696
transition,
698697
(array_agg(ROW(agent_id, agent_name)::agent_id_name_pair) FILTER (WHERE agent_id IS NOT NULL))::agent_id_name_pair[] as agents

0 commit comments

Comments
 (0)