{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/var\/www\/scripts\/pipeline && DB_PASSWORD=\"v8mFLmkF2fth_r\" .\/venv\/bin\/python -c \"\nfrom db import get_connection\n\ndb = get_connection('ki_content')\ncursor = db.cursor()\n\n# Check if table is empty first\ncursor.execute('SELECT COUNT(*) as cnt FROM critics')\nresult = cursor.fetchone()\nprint(f'Critics table has {result[\\\"cnt\\\"]} rows')\n\nif result['cnt'] == 0:\n cursor.execute('DROP TABLE critics')\n print('Dropped critics table')\nelse:\n print('WARNING: Table not empty, skipping drop')\n\ncursor.close()\ndb.close()\n\"",
"description": "Drop empty critics table"
}
}