Moved the code from src to the root.

This commit is contained in:
2024-02-12 22:21:47 +06:00
parent 154cd1c7dd
commit c4ec958576
35 changed files with 29 additions and 30 deletions

15
migration/migration.go Normal file
View File

@@ -0,0 +1,15 @@
package migration
import (
"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
}