owpengram-server/deploy/migrations/20260714003115_verifier_service_bot.down.sql

12 lines
569 B
SQL

-- Remove the built-in @verifierbot seed. Its private history is left alone: chat
-- rows reference the account, and dropping them would rewrite users' dialogs.
--
-- Any verifier status an operator granted this bot lives in bot_verifier_settings
-- (0155) and cascades when this account seed is removed.
DELETE FROM public.read_model_versions
WHERE owner_user_id = 1250000013 AND peer_type = 'user' AND peer_id = 1250000013;
DELETE FROM public.peer_usernames
WHERE peer_type = 'user' AND peer_id = 1250000013;
DELETE FROM public.bots WHERE bot_user_id = 1250000013;