fix: store and scrobble with real album artist info string

This commit is contained in:
sentriz
2023-10-25 22:06:36 +01:00
parent 46575278ed
commit fe0567a995
4 changed files with 50 additions and 38 deletions

View File

@@ -66,6 +66,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
construct(ctx, "202309070009", migrateDeleteArtistCoverField),
construct(ctx, "202309131743", migrateArtistInfo),
construct(ctx, "202309161411", migratePlaylistsPaths),
construct(ctx, "202310252205", migrateAlbumTagArtistString),
}
return gormigrate.
@@ -729,3 +730,7 @@ func backupDBPre016(tx *gorm.DB, ctx MigrationContext) error {
}
return Dump(context.Background(), tx, fmt.Sprintf("%s.%d.bak", ctx.DBPath, time.Now().Unix()))
}
func migrateAlbumTagArtistString(tx *gorm.DB, _ MigrationContext) error {
return tx.AutoMigrate(Album{}).Error
}