mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-02 03:37:59 +08:00
test database is connect OK after db config initialized (#239)
This commit is contained in:
parent
ba2e75a0ab
commit
450969c158
@ -196,6 +196,10 @@ func NewEngine() (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = x.Ping(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = migrations.Migrate(x); err != nil {
|
||||
return fmt.Errorf("migrate: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user