Skip to content

Fix duplicate POSTGRES enum entry causing backend startup failure - #12936

Merged
KevinHuSh merged 8 commits into
infiniflow:mainfrom
LiruiYu33:main
Feb 2, 2026
Merged

KevinHuSh merged 8 commits into
infiniflow:mainfrom
LiruiYu33:main

Conversation

@LiruiYu33

@LiruiYu33 LiruiYu33 commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Fixes a duplicate POSTGRES entry in the TextFieldType enum that triggers TypeError: 'POSTGRES' already defined as 'TEXT' on
import, preventing the backend from starting and resulting in 502 errors on the frontend.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

Copilot AI review requested due to automatic review settings February 2, 2026 02:59
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 2, 2026
@dosubot dosubot Bot added the 🐞 bug Something isn't working, pull request that fix bug. label Feb 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug where a duplicate POSTGRES = "TEXT" entry in the TextFieldType enum caused a TypeError on import, preventing the backend from starting.

Changes:

  • Removed the duplicate POSTGRES = "TEXT" entry from the TextFieldType enum in api/db/db_models.py

@Rynzie02

Rynzie02 commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Hey, I have finished it in PR #12931 before

@KevinHuSh
KevinHuSh merged commit 01f9b98 into infiniflow:main Feb 2, 2026
tmimmanuel pushed a commit to tmimmanuel/ragflow that referenced this pull request May 14, 2026
…finiflow#12936)

### What problem does this PR solve?
Fixes a duplicate POSTGRES entry in the TextFieldType enum that triggers
TypeError: 'POSTGRES' already defined as 'TEXT' on
import, preventing the backend from starting and resulting in 502 errors
on the frontend.
### Type of change
  - [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants