mirror of
https://github.com/plausible/analytics.git
synced 2025-01-03 07:08:04 +03:00
Cascade site deletion to invitations
This commit is contained in:
parent
adf9c1acfb
commit
0b4c430bb8
@ -0,0 +1,11 @@
|
||||
defmodule Plausible.Repo.Migrations.CascadeSiteDeletionToInvitations do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
drop constraint("invitations", "invitations_site_id_fkey")
|
||||
|
||||
alter table(:invitations) do
|
||||
modify :site_id, references(:sites, on_delete: :delete_all), null: false
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user