jcugat / django-custom-user

Custom user model for Django with the same behaviour as the default User class but with email instead of username.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MySQL error on migration: (1071, 'Specified key was too long; max key length is 767 bytes')

ilhan opened this issue Β· comments

commented

When using utfmb4 as you should πŸ˜ƒ a default MySQL installation errors out.

This pull request lowers the max_length to 150 from 255.
Another approach could be to write a warning to utfmb4 users somewhere if you dont want to limit those not affected.

commented

Hm, dont experience the same problem on MySQL 5.7.11 via homebrew on Mac.
Had the problem on MySQL 5.5.44 via apt-get on Debian.

This was also discussed in #29

Thanks for the extra info about old MySQL versions!