feat: login with apple

This commit is contained in:
VaalaCat
2024-09-04 18:15:49 +00:00
parent 13148b95e3
commit 0948d23239
13 changed files with 268 additions and 41 deletions

View File

@@ -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!!!")
}
}
}