Django - MySQL (1170, "BLOB/TEXT column 'object_path' used in key specification without a key length [duplicate]

I've updated the Django model field from CharField to TextField.

I got the below error while applying migrations in MySQL.

django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'my_column' used in key specification without a key length")

Django version: 2.2.2 Note: This column in included in unique_together in Meta.

Back to Top