db: add genres table and genre id column to album and tracks
This commit is contained in:
@@ -67,3 +67,15 @@ var migrationMergePlaylist = gormigrate.Migration{
|
||||
Error
|
||||
},
|
||||
}
|
||||
|
||||
var migrationAddGenre = gormigrate.Migration{
|
||||
ID: "202003020000",
|
||||
Migrate: func(tx *gorm.DB) error {
|
||||
return tx.AutoMigrate(
|
||||
Genre{},
|
||||
Album{},
|
||||
Track{},
|
||||
).
|
||||
Error
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user