diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/common/db.go | 2 | ||||
-rw-r--r-- | routers/install/install.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/common/db.go b/routers/common/db.go index e5848796fb..99d66f93e8 100644 --- a/routers/common/db.go +++ b/routers/common/db.go @@ -25,7 +25,7 @@ func InitDBEngine(ctx context.Context) (err error) { default: } log.Info("ORM engine initialization attempt #%d/%d...", i+1, setting.Database.DBConnectRetries) - if err = db.NewEngine(ctx, migrations.Migrate); err == nil { + if err = db.InitEngineWithMigration(ctx, migrations.Migrate); err == nil { break } else if i == setting.Database.DBConnectRetries-1 { return err diff --git a/routers/install/install.go b/routers/install/install.go index 1c042f9b4e..e38b51fb7e 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -209,7 +209,7 @@ func SubmitInstall(ctx *context.Context) { } // Set test engine. - if err = db.NewInstallTestEngine(ctx, migrations.Migrate); err != nil { + if err = db.InitInstallEngineWithMigration(ctx, migrations.Migrate); err != nil { if strings.Contains(err.Error(), `Unknown database type: sqlite3`) { ctx.Data["Err_DbType"] = true ctx.RenderWithErr(ctx.Tr("install.sqlite3_not_available", "https://docs.gitea.io/en-us/install-from-binary/"), tplInstall, &form) |