mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
12 lines
297 B
Elixir
12 lines
297 B
Elixir
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
|