mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
18 lines
380 B
Elixir
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
|