mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 02:55:02 +03:00
11 lines
243 B
Elixir
11 lines
243 B
Elixir
|
defmodule Plausible.Repo.Migrations.FixupGoalsSitesAssoc do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
alter table(:goals) do
|
||
|
modify :site_id, references(:sites, on_delete: :delete_all), null: false
|
||
|
remove :domain
|
||
|
end
|
||
|
end
|
||
|
end
|