analytics/priv/repo/migrations/20200320100803_add_setup_emails.exs

16 lines
430 B
Elixir
Raw Normal View History

defmodule Plausible.Repo.Migrations.AddSetupEmails do
use Ecto.Migration
def change do
create table(:setup_help_emails) do
add :site_id, references(:sites), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
create table(:setup_success_emails) do
add :site_id, references(:sites), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
end
end