日志表未创建问题

This commit is contained in:
junleea 2025-03-21 18:59:30 +08:00
parent 1a05537b1f
commit 4ca7f69253
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ func Init() error {
fmt.Println("file table:", err) fmt.Println("file table:", err)
} }
err = db.AutoMigrate(&File{}) err = db.AutoMigrate(&Logger{})
if err != nil { if err != nil {
fmt.Println("file table:", err) fmt.Println("logger table:", err)
return err return err
} }