Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

430 B
Raw Blame
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