From bc5a0b9df1d31b0ab48b7be835c39e7d25928e05 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 22 Oct 2025 16:51:55 +0100 Subject: [PATCH] Don't use primary key for scrobbled tracks embeds --- lib/last_fm/album.ex | 1 + lib/last_fm/artist.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/last_fm/album.ex b/lib/last_fm/album.ex index 9568c616..51f17e30 100644 --- a/lib/last_fm/album.ex +++ b/lib/last_fm/album.ex @@ -7,6 +7,7 @@ defmodule LastFm.Album do musicbrainz_id: String.t(), title: String.t() } + @primary_key false embedded_schema do field :musicbrainz_id, :string field :title, :string diff --git a/lib/last_fm/artist.ex b/lib/last_fm/artist.ex index abdca4e9..cfcd20a9 100644 --- a/lib/last_fm/artist.ex +++ b/lib/last_fm/artist.ex @@ -15,6 +15,7 @@ defmodule LastFm.Artist do image_data_hash: String.t() | nil } + @primary_key false embedded_schema do field :musicbrainz_id, :string field :name, :string