diff options
-rw-r--r-- | models/asymkey/ssh_key_verify.go | 1 | ||||
-rw-r--r-- | models/migrations/v204.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go index 52ffe9d80f..710cb3af00 100644 --- a/models/asymkey/ssh_key_verify.go +++ b/models/asymkey/ssh_key_verify.go @@ -9,6 +9,7 @@ import ( "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/log" + "github.com/42wim/sshsig" ) diff --git a/models/migrations/v204.go b/models/migrations/v204.go index 159fbd9dde..ad21cfbd84 100644 --- a/models/migrations/v204.go +++ b/models/migrations/v204.go @@ -11,5 +11,5 @@ func addSSHKeyIsVerified(x *xorm.Engine) error { Verified bool `xorm:"NOT NULL DEFAULT false"` } - return x.Sync(new(PublicKey)) + return x.Sync2(new(PublicKey)) } |