I had this in my models.py
category = models.CharField(max_length=1024, null=False)
I changed it to this:
category = models.CharField(max_length=256, null=False)
and migrated successfully.
and then I changed it to this:
category = models.CharField(max_length=256, null=False, db_index=True)
While migrating I get this:
_mysql_exceptions.Warning: Specified key was too long; max key length is 767 bytes
and migration breaks.
However when I open phpmyadmin panel I see that the index has been created.
Should I care? Should I do anything not to have this warning? Is this warning important?
EDIT: field collation is utf8_general_ci