From 74a93e2ee0192a50b3b4fb2a95f1d30e22d6a0f1 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 18 Sep 2025 21:33:52 +0300 Subject: [PATCH] Remove obsolete data in artist infos --- ...0918183230_remove_artist_info_image_data.exs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 priv/repo/migrations/20250918183230_remove_artist_info_image_data.exs diff --git a/priv/repo/migrations/20250918183230_remove_artist_info_image_data.exs b/priv/repo/migrations/20250918183230_remove_artist_info_image_data.exs new file mode 100644 index 00000000..a07021e3 --- /dev/null +++ b/priv/repo/migrations/20250918183230_remove_artist_info_image_data.exs @@ -0,0 +1,17 @@ +defmodule MusicLibrary.Repo.Migrations.RemoveArtistInfoImageData do + use Ecto.Migration + + def up do + alter table(:artist_infos) do + remove(:image_data) + remove :image_data_width + end + end + + def down do + alter table(:artist_infos) do + add :image_data, :blob + add :image_data_width, :integer + end + end +end