From 63c0dc89ef96a2e38b38aa6cba5e4e8d1d7b9150 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 30 Oct 2021 22:32:11 +0800 Subject: Rename db Engines related functions (#17481) * Rename db Engines related functions Co-authored-by: wxiaoguang --- cmd/migrate_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/migrate_storage.go') diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index d9ca8a0839..7c7629490e 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_storage.go @@ -118,7 +118,7 @@ func runMigrateStorage(ctx *cli.Context) error { log.Info("Configuration file: %s", setting.CustomConf) setting.InitDBConfig() - if err := db.NewEngine(context.Background(), migrations.Migrate); err != nil { + if err := db.InitEngineWithMigration(context.Background(), migrations.Migrate); err != nil { log.Fatal("Failed to initialize ORM engine: %v", err) return err } -- cgit v1.2.3