1 defmodule Pleroma.Repo.Migrations.DeleteHashtagsObjectsCascade do
5 execute("ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey")
7 alter table(:hashtags_objects) do
8 modify(:object_id, references(:objects, on_delete: :delete_all))
13 execute("ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey")
15 alter table(:hashtags_objects) do
16 modify(:object_id, references(:objects, on_delete: :nothing))