Skip to content

Commit cb5adf4

Browse files
committed
remove ownerid
1 parent aaf8e86 commit cb5adf4

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy