Merge branch 'refs/heads/feat-file'

This commit is contained in:
junleea 2024-12-27 19:34:05 +08:00
commit b1befd31ca
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ func Init() error {
return err return err
} }
err = db.AutoMigrate(&File{})
if err != nil {
fmt.Println("file table:", err)
return err
}
err = db.AutoMigrate(&Friend{}) err = db.AutoMigrate(&Friend{})
if err != nil { if err != nil {
fmt.Println("friend table:", err) fmt.Println("friend table:", err)