Skip to content

Increase max text length#2436

Merged
gunthercox merged 1 commit intomasterfrom
length
Feb 1, 2026
Merged

Increase max text length#2436
gunthercox merged 1 commit intomasterfrom
length

Conversation

@gunthercox
Copy link
Owner

@gunthercox gunthercox commented Feb 1, 2026

Previously I looked into switching to text fields to support longer text values per statement, however not all databases currently support indexes on text fields. Increasing the max length of the existing char fields seems like the next best option.

The choice of 1100 for this is somewhat arbitrary, but mostly this is just a larger value than before, and a round number larger than the longest string that will be present in the next release of the chatterbot coprus.


Closes #1935
Closes #2056

@gunthercox gunthercox merged commit bbf5c7b into master Feb 1, 2026
8 checks passed
@gunthercox gunthercox deleted the length branch February 1, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing train with postgresql12 django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

1 participant