Updating a field where you are using Trix editor, you get ‘Data too long for column

Given you’ve got a Trix editor field and the datatype is Text in your migration.

You’ve typed very little text and pasted one image, and now when you save you get:

Data too long for column ‘xxx'”

The solution is change the ‘text’ field to ‘longtext’ or ‘mediumtext’

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top