{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "php -r \"\n\\$creds = json_decode(file_get_contents('\/var\/www\/credentials\/db_campus.json'), true);\n\\$pdo = new PDO(\n 'mysql:host=' . \\$creds['host'] . ';dbname=ki_content;charset=utf8mb4',\n \\$creds['user'],\n \\$creds['password']\n);\n\\$stmt = \\$pdo->prepare('UPDATE content_orders SET collections = ? WHERE collections IS NULL');\n\\$stmt->execute(['[\\\"documents\\\"]']);\necho 'Updated: ' . \\$stmt->rowCount() . ' rows';\n\"",
"description": "Set default collections via PHP"
}
}