LittleSheep 771227a9ed
Some checks failed
release-nightly / build-docker (push) Has been cancelled
🎉 Initial Commit
2025-01-30 01:19:14 +08:00

18 lines
225 B
Go

package database
import (
"gorm.io/gorm"
)
var AutoMaintainRange = []any{}
func RunMigration(source *gorm.DB) error {
if err := source.AutoMigrate(
AutoMaintainRange...,
); err != nil {
return err
}
return nil
}