mirror of https://github.com/Xhofe/alist
🔊 add reason of failed to auto migrate model
parent
cc62cc99d2
commit
185795954b
|
@ -79,6 +79,6 @@ func InitModel() {
|
|||
err = conf.DB.AutoMigrate(&model.SettingItem{}, &model.Account{}, &model.Meta{})
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatalf("failed to auto migrate")
|
||||
log.Fatalf("failed to auto migrate: %s", err.Error())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue