fix:Modify SQL and new business initialization bug
This commit is contained in:
1 parent
8ebcd772b2
commit
7889e49633
2 files changed
+8
-5
No files matched your search
@@ -76,6 +76,10 @@ func AutoMigrate(db *gorm.DB) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = db.AutoMigrate(new(models.SysSetting)).Error
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
models.DataInit()
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user