From 16b19de163bdc9ce11633a468e530acdca1b08ae Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 26 Feb 2025 10:56:29 +0000 Subject: [PATCH] Remove unique index from records --- .../20250226105533_remove_unique_index_from_records.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20250226105533_remove_unique_index_from_records.exs diff --git a/priv/repo/migrations/20250226105533_remove_unique_index_from_records.exs b/priv/repo/migrations/20250226105533_remove_unique_index_from_records.exs new file mode 100644 index 00000000..da65fbd5 --- /dev/null +++ b/priv/repo/migrations/20250226105533_remove_unique_index_from_records.exs @@ -0,0 +1,7 @@ +defmodule MusicLibrary.Repo.Migrations.RemoveUniqueIndexFromRecords do + use Ecto.Migration + + def change do + drop unique_index(:records, [:musicbrainz_id, :format]) + end +end