Update to allow a Book to have no Publisher.

This commit is contained in:
2025-06-03 18:06:26 +03:00
parent cedc4d78e8
commit 30df53702b
4 changed files with 256 additions and 7 deletions
@@ -0,0 +1,21 @@
defmodule DecentralisedBookIndex.Repo.Migrations.UpdateToAllowABookToHaveNoPublisher 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
modify :publisher_id, :uuid, null: true
end
end
def down do
alter table(:books) do
modify :publisher_id, :uuid, null: false
end
end
end