-- t-paliad-131 Phase C rollback.

DROP MATERIALIZED VIEW IF EXISTS paliad.deadline_search;

-- Reverse the dangling-slug fix only if the wiedereinsetzung concept
-- exists (otherwise this migration was already partially rolled back).
UPDATE paliad.trigger_events
   SET concept_id = 're-establishment-of-rights'
 WHERE id IN (200, 201, 202, 203)
   AND concept_id = 'wiedereinsetzung';

DELETE FROM paliad.deadline_concepts WHERE slug = 'wiedereinsetzung';
