{
  "id": "python/sqlalchemy-no-such-column",
  "signature": "sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: users.age",
  "signature_zh": "sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) 没有这样的列: users.age",
  "regex": "sqlalchemy\\.exc\\.OperationalError:\\ \\(sqlite3\\.OperationalError\\)\\ no\\ such\\ column:\\ users\\.age",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The ORM model defines a column that does not exist in the database table, or the table schema is outdated.",
  "root_cause_type": "generic",
  "root_cause_zh": "ORM 模型定义了数据库中不存在的列，或表结构已过时。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding the column manually via raw SQL without updating the model",
      "why_fails": "The model may still reference the old schema if not refreshed.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the error and assuming it's transient",
      "why_fails": "The error will persist until the schema is updated.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use Alembic migrations to add the column",
      "success_rate": 0.95,
      "how": "alembic revision --autogenerate -m \"add age column\"\nalembic upgrade head",
      "condition": "",
      "sources": []
    },
    {
      "action": "Drop and recreate the table if in development",
      "success_rate": 0.85,
      "how": "Base.metadata.drop_all(engine)\nBase.metadata.create_all(engine)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}