feat(subsonic): allow search albums with MBID
This commit is contained in:
No files matched your search
@@ -78,6 +78,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
|
||||
construct(ctx, "202502012036", migratePodcastEpisode),
|
||||
construct(ctx, "202504132036", migratePodcast),
|
||||
construct(ctx, "202505211202", migrateTrackAddIndexOnBrainzID),
|
||||
construct(ctx, "202505262025", migrateAlbumAddIndexOnBrainzID),
|
||||
}
|
||||
|
||||
return gormigrate.
|
||||
@@ -847,3 +848,9 @@ func migrateTrackAddIndexOnBrainzID(tx *gorm.DB, _ MigrationContext) error {
|
||||
CREATE INDEX idx_tracks_brainz_id ON "tracks" (tag_brainz_id);
|
||||
`).Error
|
||||
}
|
||||
|
||||
func migrateAlbumAddIndexOnBrainzID(tx *gorm.DB, _ MigrationContext) error {
|
||||
return tx.Exec(`
|
||||
CREATE INDEX idx_albums_brainz_id ON "albums" (tag_brainz_id);
|
||||
`).Error
|
||||
}
|
||||
Reference in New Issue
Block a user