DELETE rp FROM qipai_role_permissions rp
INNER JOIN qipai_permissions p ON p.id = rp.permission_id
WHERE p.code IN ('report.read', 'report.export', 'report.manage');

DELETE FROM qipai_permissions
WHERE code IN ('report.read', 'report.export', 'report.manage');

DROP TABLE IF EXISTS qipai_business_daily_summaries;

DELETE FROM qipai_schema_migrations WHERE version = '2026081111';
