-- 988_dmca_notices rollback.
-- Drops the dmca_notices table + the dmca_blocked column on tracks.
--
-- WARNING : rolling back loses the entire DMCA history. Only run in
-- dev / staging after re-applying or in a true rollback scenario.

DROP TRIGGER IF EXISTS dmca_notices_updated_at_trg ON public.dmca_notices;
DROP FUNCTION IF EXISTS dmca_notices_updated_at();
DROP TABLE IF EXISTS public.dmca_notices;

ALTER TABLE public.tracks
    DROP COLUMN IF EXISTS dmca_blocked;
