Add the attribute for a cover image url for Book.

This commit is contained in:
2025-03-16 08:42:25 +02:00
parent ddc5cc590f
commit 100d8ba39a
5 changed files with 223 additions and 4 deletions
@@ -0,0 +1,21 @@
defmodule DecentralisedBookIndex.Repo.Migrations.UpdateBookToAddCoverImageUrl 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(:books) do
add :cover_image_url, :text
end
end
def down do
alter table(:books) do
remove :cover_image_url
end
end
end