feat: make all member fields optional, so member creation can be continued later

This commit is contained in:
Moritz 2025-08-05 17:19:12 +02:00
parent d4c7af558d
commit 800a55d42f
Signed by: moritz
GPG key ID: 1020A035E5DD0824
8 changed files with 286 additions and 40 deletions

View file

@ -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