mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 19:15:03 +03:00
c04e9286dd
* Revert "Rephrase error message" This reverts commitf624443a96
. * Revert "Temporarily disable goal creation" This reverts commita091635b9d
. * Update ecto schema * Make sure goal operations are per site * Update tests * Split postgres migrations
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
|