Migration 204 use Sync2 (#18044)

* format nit

* Sync2
This commit is contained in:
6543 2021-12-20 18:58:38 +01:00 committed by GitHub
parent 0ac845042e
commit 660c30db80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/log"
"github.com/42wim/sshsig"
)

View File

@ -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))
}