SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;

DELETE admin_role_permissions
FROM admin_role_permissions
JOIN admin_permissions ON admin_permissions.id = admin_role_permissions.permission_id
WHERE admin_permissions.code IN ('databi-kpi:manage', 'databi-kpi:view-all');

DELETE FROM admin_permissions
WHERE code IN ('databi-kpi:manage', 'databi-kpi:view-all');

DROP TABLE IF EXISTS admin_databi_app_kpi_targets;
DROP TABLE IF EXISTS admin_databi_kpi_targets;
