Interactive/pkg/database/migrator.go

17 lines
247 B
Go
Raw Normal View History

2024-02-01 15:26:17 +00:00
package database
import (
"code.smartsheep.studio/hydrogen/interactive/pkg/models"
"gorm.io/gorm"
)
func RunMigration(source *gorm.DB) error {
if err := source.AutoMigrate(
&models.Account{},
); err != nil {
return err
}
return nil
}