From 660c30db80fdfca3c92ecf988b2d395b6eb5017c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 20 Dec 2021 18:58:38 +0100 Subject: [PATCH] Migration 204 use Sync2 (#18044) * format nit * Sync2 --- models/asymkey/ssh_key_verify.go | 1 + models/migrations/v204.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)) }