gui-for-ffmpeg/src/migration/migration.go

16 lines
222 B
Go
Raw Normal View History

package migration
import (
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
"gorm.io/gorm"
)
func Run(db *gorm.DB) error {
err := db.AutoMigrate(&setting.Setting{})
if err != nil {
return err
}
return nil
}