2024-01-18 01:39:20 +06:00
|
|
|
package migration
|
|
|
|
|
|
|
|
import (
|
2024-02-04 21:00:55 +06:00
|
|
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
2024-01-18 01:39:20 +06:00
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Run(db *gorm.DB) error {
|
|
|
|
err := db.AutoMigrate(&setting.Setting{})
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|