Update to allow a Book to have no Publisher.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user