mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 20:13:31 +03:00
17 lines
334 B
Elixir
17 lines
334 B
Elixir
defmodule Plausible.Repo.Migrations.AddGoals do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:goals) do
|
|
add :domain, :text, null: false
|
|
add :name, :text, null: false
|
|
add :event_name, :text
|
|
add :page_path, :text
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:goals, [:domain, :name])
|
|
end
|
|
end
|