-- Reverses 038_concept_links_and_legal_source.

DROP INDEX IF EXISTS paliad.trigger_events_concept_id;
ALTER TABLE paliad.trigger_events DROP COLUMN IF EXISTS concept_id;

DROP INDEX IF EXISTS paliad.event_deadlines_legal_src_trgm;
ALTER TABLE paliad.event_deadlines DROP COLUMN IF EXISTS legal_source;

DROP INDEX IF EXISTS paliad.deadline_rules_legal_src_trgm;
DROP INDEX IF EXISTS paliad.deadline_rules_legal_source;
DROP INDEX IF EXISTS paliad.deadline_rules_concept_id;
ALTER TABLE paliad.deadline_rules DROP COLUMN IF EXISTS legal_source;
ALTER TABLE paliad.deadline_rules DROP COLUMN IF EXISTS concept_id;
