analytics/priv/repo/migrations/20240722143005_create_helpscout_mappings.exs
2024-07-26 15:22:59 +02:00

18 lines
380 B
Elixir

defmodule Plausible.Repo.Migrations.CreateHelpscoutMappings do
use Plausible
use Ecto.Migration
def change do
if ee?() do
create table(:help_scout_mappings) do
add :customer_id, :string, null: false
add :email, :string, null: false
timestamps()
end
create unique_index(:help_scout_mappings, [:customer_id])
end
end
end