Update the Book to add language, format, page_count, published date.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-15 21:59:13 +02:00
parent e23092d4d7
commit ddc5cc590f
6 changed files with 238 additions and 16 deletions
@@ -0,0 +1,27 @@
defmodule DecentralisedBookIndex.Repo.Migrations.UpdateBookToAddPublishedLanguageFormatAndPageCount 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 :published, :date, null: false
add :language, :text, null: false
add :format, :text, null: false
add :page_count, :bigint, null: false
end
end
def down do
alter table(:books) do
remove :page_count
remove :format
remove :language
remove :published
end
end
end