feat: make all member fields optional, so member creation can be continued later
This commit is contained in:
parent
d4c7af558d
commit
800a55d42f
8 changed files with 286 additions and 40 deletions
|
|
@ -0,0 +1,23 @@
|
|||
defmodule Mv.Repo.Migrations.UpdateMemberConstraints 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(:members) do
|
||||
modify :last_name, :text, null: true
|
||||
modify :first_name, :text, null: true
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:members) do
|
||||
modify :first_name, :text, null: false
|
||||
modify :last_name, :text, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue