From fe622b26e30d918980eba7db05d43a60ea71ff3a Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 15 Nov 2021 11:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/models.go b/models/models.go index 020ee6d6e..6631a9124 100755 --- a/models/models.go +++ b/models/models.go @@ -232,7 +232,7 @@ func NewEngine(ctx context.Context, migrateFunc func(*xorm.Engine) error) (err e if err = newEngine(ctx, migrateFunc, xStatistic, tablesStatistic, setting.DatabaseStatistic); err != nil { return fmt.Errorf("newEngine statistic failed: %v", err) } - MigrateCustomStatic(xStatistic) + MigrateCustomStatic(x, xStatistic) HasEngine = true