mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 18:48:06 +03:00
16 lines
430 B
Elixir
16 lines
430 B
Elixir
|
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
|