mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
chore: panic error during database migration
This commit is contained in:
parent
ae280eb532
commit
c8c569a643
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func NewDatabase(cfg *config.Config) (*gorm.DB, error) {
|
|||
sqlDb, _ := db.DB()
|
||||
err = migrateDB(sqlDb)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return db, nil
|
||||
|
|
Loading…
Reference in a new issue