From fb978406cd853de7e7ee2dc76627f914f072f200 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 2 Oct 2024 14:32:27 +0100 Subject: [PATCH] Remove year from records --- lib/music_library/records/record.ex | 1 - .../20241002133130_remove_year_from_records.exs | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 priv/repo/migrations/20241002133130_remove_year_from_records.exs diff --git a/lib/music_library/records/record.ex b/lib/music_library/records/record.ex index 8f4fdbeb..3ef7d123 100644 --- a/lib/music_library/records/record.ex +++ b/lib/music_library/records/record.ex @@ -13,7 +13,6 @@ defmodule MusicLibrary.Records.Record do field :image_url, :string field :image_data, :binary field :image_data_hash, :string - field :year, :integer field :musicbrainz_id, Ecto.UUID field :genres, {:array, :string} field :release, :string diff --git a/priv/repo/migrations/20241002133130_remove_year_from_records.exs b/priv/repo/migrations/20241002133130_remove_year_from_records.exs new file mode 100644 index 00000000..e17ecf9d --- /dev/null +++ b/priv/repo/migrations/20241002133130_remove_year_from_records.exs @@ -0,0 +1,9 @@ +defmodule MusicLibrary.Repo.Migrations.RemoveYearFromRecords do + use Ecto.Migration + + def change do + alter table(:records) do + remove :year + end + end +end