feat: add smtp settings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c4135308e6
commit
a4f3aa5d6f
23 changed files with 2424 additions and 152 deletions
27
priv/repo/migrations/20260311082352_add_smtp_to_settings.exs
Normal file
27
priv/repo/migrations/20260311082352_add_smtp_to_settings.exs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
defmodule Mv.Repo.Migrations.AddSmtpToSettings do
|
||||
@moduledoc """
|
||||
Adds SMTP configuration attributes to the settings table.
|
||||
"""
|
||||
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:settings) do
|
||||
add :smtp_host, :text
|
||||
add :smtp_port, :bigint
|
||||
add :smtp_username, :text
|
||||
add :smtp_password, :text
|
||||
add :smtp_ssl, :text
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:settings) do
|
||||
remove :smtp_ssl
|
||||
remove :smtp_password
|
||||
remove :smtp_username
|
||||
remove :smtp_port
|
||||
remove :smtp_host
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue