gui-for-ffmpeg/migration/migration.go

16 lines
218 B
Go
Raw Permalink Normal View History

package migration
import (
2024-02-12 22:21:47 +06:00
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/setting"
"gorm.io/gorm"
)
func Run(db *gorm.DB) error {
err := db.AutoMigrate(&setting.Setting{})
if err != nil {
return err
}
return nil
}