diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go index 52ffe9d80fe..710cb3af00c 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 159fbd9ddec..ad21cfbd845 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)) }