Skip to content

Commit

Permalink
head version
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaa0019 committed Sep 20, 2024
1 parent 14380dc commit 7a1ba3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/mysql/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package mysql

import (
"fmt"
"github.com/caohui123/goweb/internal/app/model"
"github.com/caohui123/goweb/pkg/config"
lg "github.com/caohui123/goweb/pkg/logger"
"go.uber.org/zap"
Expand Down Expand Up @@ -32,7 +31,7 @@ func InitMysql(cfg *config.DBConfig) *gorm.DB {
log.Fatalln(err)
}
})
MysqlDb.AutoMigrate(&model.User{})
MysqlDb.AutoMigrate()
return MysqlDb
}

Expand Down

0 comments on commit 7a1ba3c

Please sign in to comment.