1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.AddNotificationConstraints do
9 drop(constraint(:notifications, "notifications_activity_id_fkey"))
11 alter table(:notifications) do
12 modify(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all),
19 drop(constraint(:notifications, "notifications_activity_id_fkey"))
21 alter table(:notifications) do
22 modify(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all),