feat(subsonic): return disc titles
This commit is contained in:
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user