Moved the code from src to the root.
This commit is contained in:
15
migration/migration.go
Normal file
15
migration/migration.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user