Skip to content

Commit f02e82d

Browse files
committed
PR comments
1 parent b21004f commit f02e82d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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-
type Map map[string]string
10+
type StringMap map[string]string
1111

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

28-
func (m Map) Value() (driver.Value, error) {
28+
func (m StringMap) Value() (driver.Value, error) {
2929
return json.Marshal(m)
3030
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ALTER TABLE provisioner_daemons DROP COLUMN auth_token;
21
ALTER TABLE provisioner_daemons DROP COLUMN tags;
2+
ALTER TABLE provisioner_jobs DROP COLUMN tags;

0 commit comments

Comments
 (0)