diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-30 22:32:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 22:32:11 +0800 |
commit | 63c0dc89ef96a2e38b38aa6cba5e4e8d1d7b9150 (patch) | |
tree | 91da225f6e02bba47fbe5677e18d6617e43aedcd /cmd/migrate.go | |
parent | 76a3190b8a988e18a6b5d66dcc7324f04d83342f (diff) | |
download | gitea-63c0dc89ef96a2e38b38aa6cba5e4e8d1d7b9150.tar.gz gitea-63c0dc89ef96a2e38b38aa6cba5e4e8d1d7b9150.zip |
Rename db Engines related functions (#17481)
* Rename db Engines related functions
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'cmd/migrate.go')
-rw-r--r-- | cmd/migrate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/migrate.go b/cmd/migrate.go index a5dfed20b2..7bb87d8400 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.go @@ -35,7 +35,7 @@ func runMigrate(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 } |