analytics/priv/repo/migrations/20190910120900_add_email_address_to_settings.exs
2019-10-15 15:34:41 +08:00

17 lines
304 B
Elixir

defmodule Plausible.Repo.Migrations.AddEmailAddressToSettings do
use Ecto.Migration
use Plausible.Repo
def change do
alter table(:email_settings) do
add :email, :citext
end
flush()
alter table(:email_settings) do
modify :email, :citext, null: false
end
end
end