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

Commit2fa16e4

Browse files
committed
PR comments
1 parentb21004f commit2fa16e4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ func (api *API) CreateInMemoryProvisionerDaemon(ctx context.Context, debounce ti
656656
CreatedAt:database.Now(),
657657
Name:name,
658658
Provisioners: []database.ProvisionerType{database.ProvisionerTypeEcho,database.ProvisionerTypeTerraform},
659-
Tags: dbtype.Map{
659+
Tags: dbtype.StringMap{
660660
provisionerdserver.TagScope:provisionerdserver.ScopeOrganization,
661661
},
662662
})

‎coderd/database/dbtype/dbtype.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"golang.org/x/xerrors"
88
)
99

10-
typeMapmap[string]string
10+
typeStringMapmap[string]string
1111

12-
func (m*Map)Scan(srcinterface{})error {
12+
func (m*StringMap)Scan(srcinterface{})error {
1313
ifsrc==nil {
1414
returnnil
1515
}
@@ -25,6 +25,6 @@ func (m *Map) Scan(src interface{}) error {
2525
returnnil
2626
}
2727

28-
func (mMap)Value() (driver.Value,error) {
28+
func (mStringMap)Value() (driver.Value,error) {
2929
returnjson.Marshal(m)
3030
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ALTERTABLE provisioner_daemons DROP COLUMN auth_token;
21
ALTERTABLE provisioner_daemons DROP COLUMN tags;
2+
ALTERTABLE provisioner_jobs DROP COLUMN tags;

‎coderd/database/queries.sql.go

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

‎coderd/database/queries/provisionerjobs.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WHERE
2323
ANDnested.completed_at ISNULL
2424
ANDnested.provisioner= ANY(@types :: provisioner_type [ ])
2525
-- Ensure the caller satisfies all job tags.
26-
AND@tags :: jsonb@>nested.tags
26+
ANDnested.tags<@ @tags :: jsonb
2727
ORDER BY
2828
nested.created_at FOR
2929
UPDATE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp