Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0b5f27f

Browse files
feat: addparent_id column toworkspace_agents table (#17758)
Adds a new nullable column `parent_id` to `workspace_agents` table. Thislays the groundwork for having child agents.
1 parent398b999 commit0b5f27f

File tree

25 files changed

+278
-26
lines changed

25 files changed

+278
-26
lines changed

‎coderd/apidoc/docs.go‎

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

‎coderd/apidoc/swagger.json‎

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

‎coderd/database/dbgen/dbgen.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func WorkspaceAgentPortShare(t testing.TB, db database.Store, orig database.Work
181181
funcWorkspaceAgent(t testing.TB,db database.Store,orig database.WorkspaceAgent) database.WorkspaceAgent {
182182
agt,err:=db.InsertWorkspaceAgent(genCtx, database.InsertWorkspaceAgentParams{
183183
ID:takeFirst(orig.ID,uuid.New()),
184+
ParentID:takeFirst(orig.ParentID, uuid.NullUUID{}),
184185
CreatedAt:takeFirst(orig.CreatedAt,dbtime.Now()),
185186
UpdatedAt:takeFirst(orig.UpdatedAt,dbtime.Now()),
186187
Name:takeFirst(orig.Name,testutil.GetRandomName(t)),

‎coderd/database/dbmem/dbmem.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9570,6 +9570,7 @@ func (q *FakeQuerier) InsertWorkspaceAgent(_ context.Context, arg database.Inser
95709570

95719571
agent:= database.WorkspaceAgent{
95729572
ID:arg.ID,
9573+
ParentID:arg.ParentID,
95739574
CreatedAt:arg.CreatedAt,
95749575
UpdatedAt:arg.UpdatedAt,
95759576
ResourceID:arg.ResourceID,

‎coderd/database/dump.sql‎

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

‎coderd/database/foreign_key_constraint.go‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTERTABLE workspace_agents
2+
DROP COLUMN IF EXISTS parent_id;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTERTABLE workspace_agents
2+
ADD COLUMN parent_id UUIDREFERENCES workspace_agents (id)ON DELETE CASCADE;

‎coderd/database/models.go‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp