{
"event": "PreToolUse",
"tool_name": "mcp__mcp-tasks__tasks_create",
"tool_input": {
"title": "Chat: DB Migration collection→collections",
"description": "## Ziel\nDatenbank-Schema für Multi-Collection anpassen.\n\n## Änderungen\n\n### Migration\n```sql\n-- Spalte umbenennen und Typ ändern\nALTER TABLE chat_sessions \n CHANGE COLUMN collection collections TEXT DEFAULT '[\"documents\"]';\n\n-- Bestehende Werte migrieren (String → JSON Array)\nUPDATE chat_sessions \nSET collections = CONCAT('[\"', collection_old, '\"]') \nWHERE collections IS NULL;\n```\n\n### Akzeptanzkriterien\n- [ ] Neue Spalte `collections` (TEXT, JSON Array)\n- [ ] Bestehende Sessions migriert\n- [ ] Default: `[\"documents\"]`",
"type": "ai_task"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"success\": true,\n \"task\": {\n \"id\": 146,\n \"uuid\": \"ca2931b3-eb81-4765-bf8b-ddc9efbe15ed\",\n \"title\": \"Chat: DB Migration collection→collections\",\n \"description\": \"## Ziel\\nDatenbank-Schema für Multi-Collection anpassen.\\n\\n## Änderungen\\n\\n### Migration\\n```sql\\n-- Spalte umbenennen und Typ ändern\\nALTER TABLE chat_sessions \\n CHANGE COLUMN collection collections TEXT DEFAULT '[\\\"documents\\\"]';\\n\\n-- Bestehende Werte migrieren (String → JSON Array)\\nUPDATE chat_sessions \\nSET collections = CONCAT('[\\\"', collection_old, '\\\"]') \\nWHERE collections IS NULL;\\n```\\n\\n### Akzeptanzkriterien\\n- [ ] Neue Spalte `collections` (TEXT, JSON Array)\\n- [ ] Bestehende Sessions migriert\\n- [ ] Default: `[\\\"documents\\\"]`\",\n \"type\": \"ai_task\",\n \"status\": \"pending\",\n \"created_by\": \"mcp-tasks\",\n \"created_by_type\": \"ai\",\n \"parent_task_id\": null,\n \"due_date\": null,\n \"created_at\": \"2025-12-20T19:06:25.774808\",\n \"updated_at\": \"2025-12-20T19:06:25.774810\",\n \"completed_at\": null,\n \"metadata\": {}\n },\n \"message\": \"Task #146 created\"\n}"
}
]
}