mirror of
https://github.com/navidrome/navidrome.git
synced 2025-08-10 00:52:20 +00:00
SQL/Orm MediaFileRepository complete
This commit is contained in:
@@ -55,6 +55,7 @@ func WithTx(block func(orm.Ormer) error) error {
|
||||
func initORM(dbPath string) error {
|
||||
orm.Debug = true
|
||||
orm.RegisterModel(new(Artist))
|
||||
orm.RegisterModel(new(MediaFile))
|
||||
err := orm.RegisterDataBase("default", "sqlite3", dbPath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user