Django - MySQL (1170, "BLOB/TEXT column 'my_column' used in key specification without a key length

260 Views Asked by At

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.

Below answers not worked/ not related:

0

There are 0 best solutions below