risk_history table missing — run upgrade-db-v7.php first.