diff options
author | 6543 <6543@obermui.de> | 2021-12-20 18:58:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 18:58:38 +0100 |
commit | 660c30db80fdfca3c92ecf988b2d395b6eb5017c (patch) | |
tree | 21ac46717d0d0bc9aab7872e39bb79954de9c26c /models | |
parent | 0ac845042e14c85934f02ecef2696e1a8651663e (diff) | |
download | gitea-660c30db80fdfca3c92ecf988b2d395b6eb5017c.tar.gz gitea-660c30db80fdfca3c92ecf988b2d395b6eb5017c.zip |
Migration 204 use Sync2 (#18044)
* format nit
* Sync2
Diffstat (limited to 'models')
-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)) } |