-- 004_telegram.down.sql
-- Symmetric drop. Children first.

DROP INDEX IF EXISTS idx_individuals_telegram_user;
DROP INDEX IF EXISTS idx_individuals_invite_code;

ALTER TABLE individuals
    DROP COLUMN IF EXISTS mute_until,
    DROP COLUMN IF EXISTS telegram_invite_code,
    DROP COLUMN IF EXISTS telegram_user_id,
    DROP COLUMN IF EXISTS telegram_chat_id;

DROP TABLE IF EXISTS telegram_bots;
