1 defmodule Pleroma.Repo.Migrations.AddNotificationConstraints do
5 drop(constraint(:notifications, "notifications_activity_id_fkey"))
7 alter table(:notifications) do
8 modify(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all),
15 drop(constraint(:notifications, "notifications_activity_id_fkey"))
17 alter table(:notifications) do
18 modify(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all),