Migration 204 use Sync2 (#18044)

* format nit

* Sync2
tokarchuk/v1.17
6543 3 years ago committed by GitHub
parent 0ac845042e
commit 660c30db80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      models/asymkey/ssh_key_verify.go
  2. 2
      models/migrations/v204.go

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

@ -11,5 +11,5 @@ func addSSHKeyIsVerified(x *xorm.Engine) error {
Verified bool `xorm:"NOT NULL DEFAULT false"` Verified bool `xorm:"NOT NULL DEFAULT false"`
} }
return x.Sync(new(PublicKey)) return x.Sync2(new(PublicKey))
} }

Loading…
Cancel
Save