Skip to content

Commit f7c46df

Browse files
committed
Fingerprint should be indexed
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 746cf22 commit f7c46df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/ssh_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type PublicKey struct {
5151
ID int64 `xorm:"pk autoincr"`
5252
OwnerID int64 `xorm:"INDEX NOT NULL"`
5353
Name string `xorm:"NOT NULL"`
54-
Fingerprint string `xorm:"NOT NULL"`
54+
Fingerprint string `xorm:"INDEX NOT NULL"`
5555
Content string `xorm:"TEXT NOT NULL"`
5656
Mode AccessMode `xorm:"NOT NULL DEFAULT 2"`
5757
Type KeyType `xorm:"NOT NULL DEFAULT 1"`

0 commit comments

Comments
 (0)