Cascade site google auth deletion
parent
9377a26a5d
commit
fd8917d4f3
@ -0,0 +1,11 @@
|
||||
defmodule Plausible.Repo.Migrations.CascadeGoogleAuthDeletion do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
drop constraint("google_auth", "google_auth_site_id_fkey")
|
||||
|
||||
alter table(:google_auth) do
|
||||
modify :site_id, references(:sites, on_delete: :delete_all), null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue