DROP TRIGGER IF EXISTS qipai_notification_attempts_no_delete;
DROP TRIGGER IF EXISTS qipai_notification_attempts_no_update;
DELETE rp FROM qipai_role_permissions rp INNER JOIN qipai_permissions p ON p.id = rp.permission_id
WHERE p.code IN ('notification.read', 'notification.manage');
DELETE FROM qipai_permissions WHERE code IN ('notification.read', 'notification.manage');
DROP TABLE IF EXISTS qipai_notification_attempts;
DROP TABLE IF EXISTS qipai_notification_deliveries;
DROP TABLE IF EXISTS qipai_notification_subscriptions;
DROP TABLE IF EXISTS qipai_notification_routes;
DROP TABLE IF EXISTS qipai_notification_templates;
DELETE FROM qipai_schema_migrations WHERE version = '2026081110';
