🔊 add reason of failed to auto migrate model

pull/661/head
Xhofe 2022-02-19 17:25:50 +08:00
parent cc62cc99d2
commit 185795954b
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}
}