feat: add mbid column to artist_settings

Additive migration 008 adds an mbid column to artist_settings, extend the
ArtistSettings struct and persistence functions (SaveArtistSettings,
GetArtistSettings, GetAllArtistSettings, UpdateArtistSettings) to carry the
MusicBrainz ID, and add round-trip tests covering empty and set MBID values.
This commit is contained in:
2026-07-19 22:13:57 +03:00
parent 35d6a5234f
commit 85c42ec858
5 changed files with 346 additions and 11 deletions

View File

@@ -205,10 +205,11 @@ func TestMigrationTracking(t *testing.T) {
t.Fatalf("query migrations count: %v", err)
}
// We have 7 recorded migrations: artist_settings, external_releases,
// We have 8 recorded migrations: artist_settings, external_releases,
// local_albums, notifications_sent, cached_at column, secondary_types
// column, and the external_releases.artist_id index.
if count != 7 {
t.Errorf("expected 7 applied migrations, got %d", count)
// column, the external_releases.artist_id index, and the artist_settings
// mbid column.
if count != 8 {
t.Errorf("expected 8 applied migrations, got %d", count)
}
}