Skip to content
Discussion options

You must be logged in to vote

Hi @Ar4ikov! I'm Dosu and I’m helping the lobe-chat team.

The migration error happens because existing data in the agents.title column exceeds the new varchar(255) limit, so PostgreSQL blocks the schema change until all values fit the constraint. Your workaround—truncating values with UPDATE agents SET title = LEFT(title, 255) WHERE LENGTH(title) > 255;—is the recommended solution and matches both official migration scripts and community guidance for Lobe Chat. This approach is also used for other columns, like description, when their length limits change [source 1] [source 2].

Recent migration scripts have adjusted these truncation lengths (for example, truncating title to 200 and descr…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arvinxx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirm Not yet confirmed by maintainers
3 participants
Converted from issue

This discussion was converted from issue #9493 on September 30, 2025 13:18.