Add the attribute for a cover image url for Book.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user