Add the attribute for a avatar image url for Author.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-16 08:53:40 +02:00
parent 100d8ba39a
commit 7d0a098a47
5 changed files with 151 additions and 0 deletions
@@ -0,0 +1,21 @@
defmodule DecentralisedBookIndex.Repo.Migrations.UpdateAuthorToAddAvatarUrl do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:authors) do
add :avatar_url, :text
end
end
def down do
alter table(:authors) do
remove :avatar_url
end
end
end