[Bug]: Upgrade path missing column `tenant.tenant_ocr_id` – all tenant DB queries silently fail as “Tenant not found”
![[Bug]: Upgrade path missing column `tenant.tenant_ocr_id` - all tenant DB queries silently fail as "Tenant not found"](https://www.chat-gpts.plus/wp-content/uploads/2026/10/18754-1fe5f807-768x403.jpg)
该报错通常出现在 RAGFlow 从旧版本(如 v0.26.x)原地升级到 v0.27.0 并复用已有 PostgreSQL 元数据库的场景。根本原因是升级迁移漏加了 tenant.tenant_ocr_id 列,导致所有 Tenant 查询静默失败;优先排查元数据库的 tenant 表结构,而不是

![[Question]: Chunk method table is not supported by Infinity?](https://www.chat-gpts.plus/wp-content/uploads/2026/10/4782-52d937bc-768x403.jpg)






