From a79ad186b9c66bb1ff87bd86777f7d8aceb36e28 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Fri, 7 Apr 2023 07:23:07 +0200 Subject: [PATCH] Do not make Goal.site not nullable just yet --- .../migrations/20230406110926_associate-goals-with-sites.exs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/priv/repo/migrations/20230406110926_associate-goals-with-sites.exs b/priv/repo/migrations/20230406110926_associate-goals-with-sites.exs index b37b90d9d..f26f663d4 100644 --- a/priv/repo/migrations/20230406110926_associate-goals-with-sites.exs +++ b/priv/repo/migrations/20230406110926_associate-goals-with-sites.exs @@ -18,9 +18,5 @@ defmodule :"Elixir.Plausible.Repo.Migrations.Associate-goals-with-sites" do SELECT s.id FROM sites s WHERE s.domain = g.domain ) """ - - alter table(:goals) do - modify :site_id, references(:sites, on_delete: :delete_all), null: false - end end end