feat: login with apple
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/nose7en/ToyBoomServer/common"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -24,7 +27,9 @@ type dbManagerImpl struct {
|
||||
func (dbm *dbManagerImpl) Init(tables ...interface{}) {
|
||||
dbs := dbm.DBs[DefaultDBName]
|
||||
for _, db := range dbs {
|
||||
db.AutoMigrate(tables...)
|
||||
if err := db.AutoMigrate(tables...); err != nil {
|
||||
common.Logger(context.Background()).WithError(err).Fatalf("auto migrate error!!!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user