♻️ Use paperclip to store avatar and more

This commit is contained in:
2024-05-18 17:24:14 +08:00
parent ebef35a619
commit fd5bbd732f
17 changed files with 185 additions and 206 deletions

View File

@ -5,7 +5,7 @@ import (
"gorm.io/gorm"
)
var DatabaseAutoActionRange = []any{
var AutoMaintainRange = []any{
&models.Account{},
&models.AuthFactor{},
&models.AccountProfile{},
@ -23,7 +23,7 @@ var DatabaseAutoActionRange = []any{
}
func RunMigration(source *gorm.DB) error {
if err := source.AutoMigrate(DatabaseAutoActionRange...); err != nil {
if err := source.AutoMigrate(AutoMaintainRange...); err != nil {
return err
}