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

Commite5f7311

Browse files
committed
save
1 parent3530f73 commite5f7311

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

‎coderd/database/migrations/000226_provisioner_keys.up.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ CREATE TABLE provisioner_keys (
44
organization_id uuidNOT NULLREFERENCES organizations (id)ON DELETE CASCADE,
55
namevarchar(64)NOT NULL,
66
hashed_secretbyteaNOT NULL,
7-
UNIQUE (organization_id, name)
87
);
8+
9+
CREATEINDEXprovisioner_keys_organization_id_name_idxON provisioner_keys (organization_id, name);

‎coderd/database/modelmethods.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,6 @@ func (p ProvisionerKey) RBACObject() rbac.Object {
218218
InOrg(p.OrganizationID)
219219
}
220220

221-
func (pListProvisionerKeysByOrganizationRow)RBACObject() rbac.Object {
222-
returnrbac.ResourceProvisionerKeys.
223-
WithID(p.ID).
224-
InOrg(p.OrganizationID)
225-
}
226-
227221
func (wWorkspaceProxy)RBACObject() rbac.Object {
228222
returnrbac.ResourceWorkspaceProxy.
229223
WithID(w.ID)

‎coderd/database/queries/provisionerkeys.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ INSERT INTO
88
hashed_secret
99
)
1010
VALUES
11-
($1, $2, $3,$4, $5) RETURNING*;
11+
($1, $2, $3,lower($4), $5) RETURNING*;
1212

1313
-- name: GetProvisionerKeyByID :one
1414
SELECT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp