gorm chat_logs init

pull/461/head
withchao 2 years ago
parent 7930a8bf85
commit d345fc80c7

@ -34,7 +34,7 @@ func StartTransfer(prometheusPort int) error {
return err
}
if err := db.AutoMigrate(&relationTb.ChatLogModel{}); err != nil {
return err
fmt.Printf("gorm: AutoMigrate ChatLogModel err: %v\n", err)
}
rdb, err := cache.NewRedis()
if err != nil {

Loading…
Cancel
Save