feat(subsonic): return disc titles

This commit is contained in:
sentriz
2026-01-20 19:32:24 +00:00
parent aad729e3ea
commit 0377bfa696
6 changed files with 76 additions and 9 deletions

No files matched your search

+5
View File
@@ -82,6 +82,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
construct(ctx, "202509291741", migrateAddAlbumEmbeddedCoverTrackID),
construct(ctx, "202509301448", migrateAddTrackEmbeddedCover),
construct(ctx, "202512021147", migrateAlbumAddIndexOnCreatedAt),
construct(ctx, "202601201000", migrateAddAlbumDiscTitles),
}
return gormigrate.
@@ -874,3 +875,7 @@ func migrateAlbumAddIndexOnCreatedAt(tx *gorm.DB, _ MigrationContext) error {
CREATE INDEX idx_albums_created_at ON "albums" (created_at);
`).Error
}
func migrateAddAlbumDiscTitles(tx *gorm.DB, _ MigrationContext) error {
return tx.AutoMigrate(AlbumDiscTitle{}).Error
}