mitgliederverwaltung/priv/repo/migrations/20260311140000_add_mail_from_to_settings.exs
Simon a4f3aa5d6f
All checks were successful
continuous-integration/drone/push Build is passing
feat: add smtp settings
2026-03-12 13:39:48 +01:00

18 lines
410 B
Elixir

defmodule Mv.Repo.Migrations.AddMailFromToSettings do
@moduledoc "Adds smtp_from_name and smtp_from_email attributes to the settings table."
use Ecto.Migration
def up do
alter table(:settings) do
add :smtp_from_name, :text
add :smtp_from_email, :text
end
end
def down do
alter table(:settings) do
remove :smtp_from_email
remove :smtp_from_name
end
end
end